Created
January 7, 2010 07:03
-
-
Save ilake/271053 to your computer and use it in GitHub Desktop.
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
def rescue_action_in_public(exception) | |
case exception | |
when ::ActionController::RedirectBackError | |
redirect_to homepage_url | |
else | |
super | |
end | |
end | |
#http://blog.hendrikvolkmer.de/2007/3/8/http-referer-and-redirect_to-back/ | |
#http://www.javaeye.com/topic/135552 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment