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.
Ankit P. (Guest)
on 2009-04-01 14: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
Greg D. (Guest)
on 2009-04-02 01:53
(Received via mailing list)
On Wed, Apr 1, 2009 at 5:13 AM, Ankit P.
<removed_email_address@domain.invalid> 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 D.
http://destiney.com/
This topic is locked and can not be replied to.