Rack::ErrorPage catches exceptions, ditches them, and then renders the file of your choice with a status of 500¶ ↑
- Author
-
Michael Gorsuch ([email protected])
- Copyright
-
Copyright © 2009 Michael Gorsuch
- License
-
BSD
gem install rack_errorpage
In config.ru, do something like so:
require 'rack_errorpage' use Rack::ErrorPage, "./public/500.html"
Make sure that you enable error raising to get this to work. Example:
set :raise_errors, :true