Skip to content

Instantly share code, notes, and snippets.

@joshnesbitt
Created July 18, 2013 09:36
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 joshnesbitt/6028041 to your computer and use it in GitHub Desktop.
Save joshnesbitt/6028041 to your computer and use it in GitHub Desktop.
RoutingTest::Application.routes.draw do
get "404", :to => "errors#show", :code => 404, :as => :not_found
get "422", :to => "errors#show", :code => 422, :as => :unprocessible_entity
get "500", :to => "errors#show", :code => 500, :as => :server_error
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment