redirect_to :back
On 10/8/06, Jay L.
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> How can I make a user go back to where he was after doing something with
> a post.
> For example, let''s assume that the user clicked a post in a third
page,
> and after doing something (reply, destroy and so on) with the post it
> just redirect to the list.
> But at this time, the user always go back to the first page because of
> "redirect_to :action => ''list''"
> Is there any way to store the user''s location before performing a
> function and redirect to the location after the function finished?
>
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---