I had this same problem
http://groups.google.com/group/hobousers/browse_thread/thread/90755ed4c14358be/dce39e54b97ab722?hl=en&lnk=gst&q=after-submit#dce39e54b97ab722

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.- Hide quoted text -
>
> - 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 at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to