Exception Notification Gem and Rails 3
All previous answers are outdated, you can now simply add this to your gemfile:
gem 'exception_notification', :require => 'exception_notifier'
And edit your production.rb config file as indicated in the readme:
config.middleware.use ExceptionNotifier, :email_prefix => "[Exception] ", :sender_address => %{"Exception Notifier" <support@example.com>}, :exception_recipients => %w{you@me.com}
Latest version of official gem works with Rails 3, you can find it here: https://github.com/smartinez87/exception_notification.
Next gem release will make the :require => 'exception_notifier'
option unnecessary.
Ok, its working now for me:
# Gemfilegem "exception_notification", :git => "git://github.com/rails/exception_notification", :require => 'exception_notifier'# application.rb, inside the config blockconfig.middleware.use ::ExceptionNotifier, :email_prefix => "ApplicationName-Errors: ", :sender_address => %w{office@application.com}, :exception_recipients => %w{office@application.com}