Thursday 21 April 2016

Exception Notifications via email in Rails


ruby_on_rails-svg.png

Hi Friends,
Let's first discuss about debugging a code. During development, suppose you have pushed some changes, then you need to test each and every functionality to check whether your code breaks or not, which is actually impossible. Suppose some part of your code is throwing exceptions, and you are not aware of that but the end user is facing issues because of that. So it is better to have a solution that automatically sends notifications to the developers and admin's whenever an exception comes in the code.
In rails we have a beautiful gem exception_notification that does the work for us. The documentation of the gem can be found at Exception Notifier in Rails.
Here I am explaining how to set up this in your application.
Step 1: Add the gem to your Gemfile.
  1.    gem 'exception_notification'
Step 2: Run the bundle.
Read the full Blog about Exception Notifications via email in Rails at Findnerd.

No comments:

Post a Comment