The Exception Notifier plugin provides a mailer object and a default set of templates for sending email notifications when errors occur in a Rails application.

The plugin is configurable, and emails include information about the current request, session, and environment, and also gives a backtrace of the exception.

Exception Notifications (revised) There's a great Railscast about Exception Notification you can see that may help you getting started.

Getting it

You can use the latest ExceptionNotification gem with Rails 3, by adding the following line in your Gemfile

gem 'exception_notification'

As of Rails 3 ExceptionNotification is used as a rack middleware, so you can configure its options on your config.ru file, or in the environment you want it to run.

In most cases you would want ExceptionNotification to run on production. You can make it work by:

Whatever::Application.config.middleware.use ExceptionNotifier,
  :email_prefix => "[Whatever] ",
  :sender_address => %{"notifier" },
  :exception_recipients => %w{exceptions@example.com}

And that's it! That's all you need to get up and running with it.

I want to know more!

Check out the project README for more information and customization options you can use.

Support or Contributions

If you find any bug or want to contribute some cool feature, please visit the issues page.