Rails Exception Notifier

Alternative to rollbar.com or sentry.com

Nauman Tariq
2 min readNov 11, 2023
Ruby on rails email notification for exception by https://nauman.one

ExceptionNotification is a gem for Ruby on Rails applications that provides a simple and customizable way to handle error tracking and notifications. When an exception occurs in your Rails application, ExceptionNotification can automatically send you details about the error via different notifiers, such as email, Slack, or even custom webhooks.

This tool is particularly useful for developers who need to keep track of exceptions and errors in their Rails applications. Unlike more comprehensive services like Rollbar or Sentry, which offer extensive error tracking and analytics capabilities, ExceptionNotification focuses on simplicity and direct notifications. It's ideal for smaller projects or for developers who prefer to receive error reports via email or other straightforward methods.

Here’s a quick summary of setting up ExceptionNotification in a Rails application:

bundle add exception_notification
rails g exception_notification:install

Now all you need to do is add notifier section in config/initializers/exception_notification.rb

  # Email notifier sends notifications by email.
config.add_notifier :email, {
email_prefix: '[WebsiteName - ERROR] ',
sender_address: %{"WebsiteName"…

--

--