On Friday, 21 December 2012 02:10:51 UTC-5, Maddy wrote:
>
> Thanks!
>
> Is there any another way??
>
> My requirement is, once i clicks the browser back button my site *redirect 
> to home page*.
>
> Please advice!
>
>
As others have indicated, it's tricky-to-impossible and considered 
*seriously* bad practice to do this sort of fiddling with the browser's 
navigation.

A better question is, why does this need to happen? There's a good chance 
that the need for this sort of behavior reflects a design smell someplace 
else - for instance, trying to maintain session state in the URL or similar.

--Matt Jones 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/wSHWQTULrW4J.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to