Custom 40x error pages with contact form
I should customize the 400, 418, etc. error pages to look nicer and still have the navigation bar. Some resources I found:
- https://medium.com/ruby-on-rails-web-application-development/custom-400-500-error-pages-in-ruby-on-rails-exception-handler-3a04975e4677
- https://stackoverflow.com/questions/24235805/rails-4-how-do-i-create-a-custom-404-page-that-uses-the-asset-pipeline
- https://mattbrictson.com/dynamic-rails-error-pages
I'll likely want some basic CSS to fall back on in case the asset pipeline dies, but I definitely want to use the user's CSS, if possible.
I should also integrate a contact form so that users can say what they were trying to do. It should generate an Error in the database, and the form would submit a new Message with an associated Error foreign key. This Message would then show up in the admin console.
I would need to make this for registered users only (or allow captchas, in case there was a system error that made people unable to login).
Edited by Luna Lucadou