Can't seem to get it working...it's still showing the default error pages...
using RAILS 4
Here is my code..
ErrorsController
def not_found
render :status => 404
end
def unacceptable
render :status => 422
end
def internal_error
render :status => 500
end
Application.rb
config.exceptions_app = self.routes
Routes.rb
match "/404", :to => "errors#not_found", via: 'get'
match "/422", :to => "errors#unacceptable", via: 'get'
match "/500", :to => "errors#internal_error", via: 'get'
And i have the appropriate view with all those files
Why does it still render the default rails error messages?