Thanks so much for your help. I just got back to this and implemented it and it worked great.
Thanks so much, Bryan. On Tuesday, July 31, 2012 5:09:44 PM UTC-7, Bryan Larsen wrote: > > The problem isn't the href, it's the param name. If you look at > app/views/taglibs/auto/rapid/forms.dryml for your element, you'll see > <or-cancel param="cancel"/>. > > So just use: > > <cancel: href="&root_path"/> > > Yes, the naming is inconsistent with convention, but far too many apps > depend on it staying the way it is. > > Bryan > > > On Tue, Jul 31, 2012 at 6:24 PM, [email protected] <javascript:> > <[email protected] <javascript:>> wrote: > > Thanks for your help with this. I have tried this and I can't get it to > take > > effect. > > > > My form is here: http://pastie.org/4367687 > > > > I have tried the following variations on &root_path: > > > > '/' > > '&root' > > '&root_path' > > > > I have also tried several placements for the line, inside and outside > the > > after-actions block. > > > > Note that this is not an Ajax form - not sure if that makes a > difference. I > > can post the whole page definition if that would be interesting. > > > > In all cases, the Cancel button links to the Transaction Sets index > page. > > > > Thanks for any further help. > > > > On Wednesday, July 25, 2012 5:22:02 PM UTC-7, [email protected] wrote: > >> > >> Thanks, Bryan! I will give it a try. > >> > >> On Tuesday, July 24, 2012 2:34:41 PM UTC-7, Bryan Larsen wrote: > >>> > >>> or-cancel is simply a thin wrapper around `<a>`, so it has all of the > >>> behaviour of a as well as the behaviour documented in the cookbook. > >>> In your case, you can just use it in "dumb mode": <or-cancel > >>> href="&root_path"/> > >>> > >>> Bryan > >>> > >>> > >>> On Sat, Jul 21, 2012 at 1:49 PM, [email protected] <javascript:> > >>> <[email protected] <javascript:>> wrote: > >>> > I would like the cancel button in a new-for-user form to take the > user > >>> > to > >>> > the root of my front-site. > >>> > > >>> > I see examples for passing an object or collection to or-cancel, but > I > >>> > don't > >>> > see a way to specify a page. > >>> > > >>> > I have an inkling of defining a home-page method for users, but that > is > >>> > probably needlessly complicated. > >>> > > >>> > Any ideas from the group? > >>> > > >>> > Thanks so much! > >>> > > >>> > Pd > >>> > > >>> > -- > >>> > You received this message because you are subscribed to the Google > >>> > Groups > >>> > "Hobo Users" group. > >>> > To view this discussion on the web visit > >>> > https://groups.google.com/d/msg/hobousers/-/77vdGVX13ZEJ. > >>> > To post to this group, send email to > >>> > [email protected]<javascript:>. > > >>> > To unsubscribe from this group, send email to > >>> > [email protected] <javascript:>. > >>> > For more options, visit this group at > >>> > http://groups.google.com/group/hobousers?hl=en. > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "Hobo Users" group. > > To view this discussion on the web visit > > https://groups.google.com/d/msg/hobousers/-/iCvLovFX7m4J. > > > > To post to this group, send email to [email protected]<javascript:>. > > > To unsubscribe from this group, send email to > > [email protected] <javascript:>. > > For more options, visit this group at > > http://groups.google.com/group/hobousers?hl=en. > -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/XAa2JW_EGDEJ. 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.
