Skip to content

Instantly share code, notes, and snippets.

@usmanity
Created August 4, 2011 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save usmanity/1124684 to your computer and use it in GitHub Desktop.
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
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