You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handling the 404 is easy as you can catch the RecordNotFound error at the ApplicationController level and from there render a custom page. However, for 5XX errors, a ton of errors can occur, and it would be silly to list all types of errors.
Here is a good SO thread for a Rails 4 solution. In a nutshell, it routes the status error codes to a custom ErrorsController from within the config/routes.rb file. It remains to be seen if that would also work for Rails 5. Unless some of you have a better alternative?
The error pages should look like the other parts of the website and not be as scary as the default ones.
The text was updated successfully, but these errors were encountered: