From: Jim Morris Date: 2007-04-26T05:03:24+09:00 Subject: Re: Rails command for getting the last page Pradeep Maddi 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. > > Thanks, > Pradeep > link_to prompt, request.env['HTTP_REFERER'] -- Jim Morris, http://blog.wolfman.com