Rails command for getting the last page

P

Pradeep Maddi

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
 
J

Jim Morris

Pradeep said:
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

link_to prompt, request.env['HTTP_REFERER']
 
M

Marcin Raczkowski

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

redirect_to :back
 
V

Vlad GALU

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
Thanks,
Pradeep
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top