Rails command for getting the last page

Hi All,

In my header part i have a link for “change password”. In that chage
password page i need to place link which takes us to the back page.

Note: The problem is user my click on the change password link from any
of the page in the site.

Please let me know if there is any command in rails which gives us the
last visited page.

Thanks,
Pradeep

Pradeep M. wrote:

Thanks,
Pradeep

link_to prompt, request.env[‘HTTP_REFERER’]

if you just want to go back to page after changing password try

redirect_to :back

On 4/25/07, Pradeep M. [email protected] wrote:

Hi All,

In my header part i have a link for “change password”. In that chage
password page i need to place link which takes us to the back page.

Note: The problem is user my click on the change password link from any
of the page in the site.

Please let me know if there is any command in rails which gives us the
last visited page.

http://groups.google.com/group/rubyonrails-talk

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