URL tracking

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


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 [email protected]


Appreciated my help?
Recommend me on Working With Rails

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs