ExceptionHandler
ExceptionHandler Rails Gem (adapted from this tutorial)
Works with the config.exceptions_app hook in Rails' middleware stack:
config.exceptions_app sets the exceptions application invoked by the ShowException middleware when an exception happens. Defaults to ActionDispatch::PublicExceptions.new(Rails.public_path).
Installation
Add this line to your application's Gemfile:
gem 'exception_handler'
And then execute:
$ bundle
Or install it yourself as:
$ gem install exception_handler
Usage
Dev
#config/environments/development.rb
config.consider_all_requests_local = false # true
config.exceptions_app is used in Rails' production environment. Therefore, if you wish to test the gem in dev,
you'll need to make your app process requests as production for now. This is a temporary step, and will be
resolved in a new version
Production
No action required
Contributing
- Fork it ( https://github.com/richpeck/exception_handler/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request

