Forum: Ruby on Rails storing requested uri in session

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.
77a811c8d7af8f0460d63a3747c85dc7?d=identicon&s=25 Ankit Parekh (ankitparekh)
on 2009-04-01 12:13
hi

i want to store the requested url in session.

here is the requirement say suppose i have page abc on which i have
bidding option which calls bid/id but for that i m required to login.

so first i will be redirected to the login page and if successfully
logged in i will be redirected to bid/id page which i requested.

can any one tell me how to do it?

thanks
Aad37b5f7116c8d1f547d23b37566032?d=identicon&s=25 Greg Donald (destiney)
on 2009-04-01 23:53
(Received via mailing list)
On Wed, Apr 1, 2009 at 5:13 AM, Ankit Parekh
<rails-mailing-list@andreas-s.net> wrote:
> i want to store the requested url in session.
>
> can any one tell me how to do it?

session[:uri] = request.request_uri


--
Greg Donald
http://destiney.com/
This topic is locked and can not be replied to.