Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Rails command for getting the last page
Pradeep Maddi
4/25/2007 3:22:00 PM
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
--
Posted via
http://www.ruby-...
.
3 Answers
Jim Morris
4/25/2007 8:03:00 PM
0
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.w...
Marcin Raczkowski
4/26/2007 10:12:00 AM
0
if you just want to go back to page after changing password try
redirect_to :back
--
Marcin Raczkowski
---
Friends teach what you should know
Enemies Teach what you have to know
Vlad Galu
4/26/2007 2:58:00 PM
0
On 4/25/07, Pradeep Maddi <pradeep.maddi@paradigminfotech.com> 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/rubyon...
> Thanks,
> Pradeep
>
> --
> Posted via
http://www.ruby-...
.
>
>
--
If it's there, and you can see it, it's real.
If it's not there, and you can see it, it's virtual.
If it's there, and you can't see it, it's transparent.
If it's not there, and you can't see it, you erased it.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Rails command for getting the last page
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password