Created
August 29, 2012 10:50
-
-
Save fizzwu/3510438 to your computer and use it in GitHub Desktop.
Rails redirect back
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
session[:return_back] ||= request.referer | |
.... | |
.... | |
redirect_to session[:return_back] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment