Created
August 4, 2011 07:57
-
-
Save usmanity/1124684 to your computer and use it in GitHub Desktop.
quick way to forward errors from a rails app to 404. suggest something better if this isn't the best way to go about this
This file contains 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 method_missing(id, *args) | |
redirect_to '/404.html' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment