It passes any attributes on to the <a> tag so just set your context to the owning model. <or-cancel:post /> should actually do it.
On May 12, 8:56 am, tjg <[email protected]> wrote: > Ah, got it with a little more hacking: > > <or-cancel href='&posts_url + "/" + this.post_id.to_s'> > > This works nicely, but is there a way for me to obtain the 'proper' > url to the owning post (i.e. it's full name instead of just its record > id)? > > Tim > > On May 11, 4:52 pm, timg <[email protected]> wrote: > > > > > Hi - Hobo newbie question here. > > > Can anyone provide an example of customizing the destination for an > > <or-cancel> tag? > > > If I'm editing a blog comment, I'd like to be able to cancel out of > > the comment and return to the owning blog. I'm extending the form for > > the Comment, but just not sure how to redirect the <or-cancel> tag. > > The Hobo docs say I can easily customize it, but don't provide an > > example. > > > Many thanks, > > Tim > > > -- > > You received this message because you are subscribed to the Google Groups > > "Hobo Users" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/hobousers?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Hobo Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/hobousers?hl=en. -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
