Forum: Ruby on Rails page redirect

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B7779dc6bb2a871e33381566f28d1a10?d=identicon&s=25 john (Guest)
on 2007-03-07 08:24
i have a small query for all of you

i have a report problem link in a view and after reporting the problem
sucessfully

 the page should redirect to the previous page prior to clicking the
report   problem link
2b891e820c238ded365d035771603f21?d=identicon&s=25 Bill Walton (Guest)
on 2007-03-07 14:09
(Received via mailing list)
Hi John,

john wrote:
>
> the page should redirect to the previous page prior
> to clicking the report problem link

redirect_to => :back

hth,
Bill
2f24c382600d9fd71085a74251fd5a39?d=identicon&s=25 Damian Terentyev (Guest)
on 2007-03-10 07:10
(Received via mailing list)
On Mar 7, 2007, at 10:24, john wrote:

> i have a small query for all of you
>
> i have a report problem link in a view and after reporting the problem
> sucessfully
>
>  the page should redirect to the previous page prior to clicking the
> report   problem link

Try redirect_to :back or using request.env["HTTP_REFERER"] as the link
address.
This topic is locked and can not be replied to.