Yes, I did it for each controller. Not the DRYest solution. I agree that a mini tutorial covering after-submit would be helpful. i tried all kinds of things with no joy
On 8 May, 17:01, Jeremy Savoy <[email protected]> wrote: > Also, since several individuals cannot seem to get after-submit go- > back to work properly, perhaps a recipe or tutorial on how to use it > is in order? I understand from the comments how you *should* be able > to use it -- but does that actually work for anyone ? > > On May 8, 11:59 am, Jeremy Savoy <[email protected]> wrote: > > > > > Thanks for the input storitel. Did you have to define each action > > where you wanted to use redirect_to :back in every controller ? > > > On May 8, 7:47 am, storitel <[email protected]> wrote: > > > > I had this same > > > problemhttp://groups.google.com/group/hobousers/browse_thread/thread/90755ed... > > > > eventually gave up on after-submit, and used redirect_to as Bryan is > > > suggesting > > > > On May 7, 8:12 pm, Bryan Larsen <[email protected]> wrote: > > > > > Do you have a custom controller action or block? The after_submit is > > > > only processed in the default controller block, so if you've overridden > > > > it, it won't be processed. If you have overridden it, you're probably > > > > best off just using Rail's "redirect_to" in your controller action. > > > > > Bryan > > > > > Jeremy Savoy wrote: > > > > > Thanks Bryan, unfortunately this did not work either, with or without > > > > > the ":" directly after "after-submit". I always end up on the show > > > > > page after editing an entry in my model, but I want to end up back on > > > > > the index page. > > > > > > On May 7, 2:43 pm, Bryan Larsen <[email protected]> wrote: > > > > >> after-submit is a tag, not a parameter, try it without the ":" (but > > > > >> remember, you can't mix tags & parameters): > > > > >> <after-actions:> > > > > >> <after-submit: go-back/> > > > > >> </after-actions:> > > > > > >> Bryan > > > > > >> Jeremy Savoy wrote: > > > > >>> Can't seem to get this working right. I extended my form tag in > > > > >>> application.dryml and added > > > > >>> <after-submit: go-back/> > > > > >>> To no avail. > > > > >>> I found Henry's post about adding this to every controller action > > > > >>> you > > > > >>> want to go back for: > > > > >>> session[:previous_uri] = request.request_uri > > > > >>> Is this a requirement? I did not see this in the after-submit > > > > >>> documentation, and his post was about a year ago. > > > > >> -- > > > > >> 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.-Hidequotedtext - > > > > > - Show quoted text - > > > > -- > > > 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 > 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.
