Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have nice 404 and 500 pages #84

Open
sophiedeziel opened this issue Nov 27, 2015 · 2 comments
Open

Have nice 404 and 500 pages #84

sophiedeziel opened this issue Nov 27, 2015 · 2 comments

Comments

@sophiedeziel
Copy link
Member

The error pages should look like the other parts of the website and not be as scary as the default ones.

@benichu
Copy link
Member

benichu commented Nov 27, 2015

👍

@cawel
Copy link

cawel commented Dec 2, 2015

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants