out of time
-
Custom error pages in Rails 3
Updated: It’s
public, notapp/views.Just so that posterity may have more luck Googling for this than I did: to create a custom error (5xx) page in Rails 3, create a static HTML file with the error code in your base
publicdirectory, e.g.:public/500.htmlIf you’re internationalized (and you are, right?), you can add an I18n extension:
public/500.en.htmlThese paths are looked up by the ActionDispatch::ShowExceptions middleware when rendering an error page for a non-local request.
This may or may not already be obvious to everyone but me.