roadmap icon indicating copy to clipboard operation
roadmap copied to clipboard

Theme Rails' default 404 and 500 error pages.

Open briri opened this issue 7 years ago • 2 comments

Please complete the following fields as applicable:

Expected behaviour: Rails has built-in handling for any 404 and 500 errors that occur when running in production mode (dev and other modes should continue to display the detailed error information). We should ideally return to the previous page (need to consider best approach for ajax. Ajax should be able to catch a 404 response from the controller) or the My Dashboard if that is not possible. A user firnedly error message should appear in the normal notifications section at the top of the page

Refer to the ActionController documentation for handling generic 404 and 500 errors http://guides.rubyonrails.org/action_controller_overview.html#the-default-500-and-404-templates

Actual behaviour: Screenshot of a 404 error when running in production mode:

screen shot 2017-12-05 at 10 48 29 am

Steps to reproduce:

  1. Update your database.yml to ensure that you will not be testing against any live data!
  2. Make sure your production secrets key is set in secrets.yml
  3. Start the application in production mode bundle exec rails s -e production
  4. Login
  5. Go to a fake plan page (e.g. http://localhost:3000/plans/i5ty495yth5)

briri avatar Dec 05 '17 19:12 briri

@briri is this still relevant?

magdalenadrafiova avatar Jul 06 '20 12:07 magdalenadrafiova

yes. this is still something we should consider doing.

briri avatar Jul 06 '20 14:07 briri