Page error 404, 500, 422 --> application errors

The default status code templates are served by a Rack exception application. You can override this to be any Rack compatible app, including your applications router:

# config/application.rb
config.exceptions_app = self.routes


# config/routes.rb
  get "/404", :to => "errors#not_found"
  get "/422", :to => "errors#unacceptable"
  get "/500", :to => "errors#internal_error"

# config/environments/development.rb
config.consider_all_requests_local       = false

New controller -> errors


The default allows for you to see debug mode. But you can change it to false, similar to production environment.

http://wearestac.com/blog/dynamic-error-pages-in-rails
Should this route be removed?