Re: URL tracking

Ryan Bigg (Radar)
Tue, 20 May 2008 04:17:12 -0000

There''s a method called stored_location in authenticated_system that
can
help with this. To use it call it in a before_filter in your controller:

before_filter :store_location, :only => [:show]

and then when you want to redirect back to that action,

redirect_back_or_default root_path


On Mon, May 19, 2008 at 10:29 PM, ripan
<rip.chandigarh-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

>
> Hi guys....
>
> I want to keep track all urls of my rails application.
>
> Suppose i m not logged in.......... i am clicking the links......after
> logging in i should come to that page which i viewed last time  (in
> not logged in mode).
> can anyone tel me the logic...or how to keep track of the url of the
> website.
>
>
> ripan
> >
>


--
Appreciated my help?
Recommend me on Working With Rails
http://workingwithrails.com/person/11030-ryan-bigg

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---