Email on error

Hello All,

Is there any built in method/gem which can send an email when any kind
of error comes in your application?

Is there any built in method/gem which can send an email when any kind
of error comes in your application?

There are. I’d suggest looking into hoptoadapp or exception notifier or
one of the other services that provide hooks for this sort of thing.

Much more convenient than getting an email per error…

-philip

Philip H. wrote:

Is there any built in method/gem which can send an email when any kind
of error comes in your application?

There are. I’d suggest looking into hoptoadapp or exception notifier or
one of the other services that provide hooks for this sort of thing.

Much more convenient than getting an email per error…

Hello,

Thanks for your quick reply. After some R&D, i find a gem called
exception
notification(GitHub - rails/exception_notification at 2-3-stable)
which do the same work as i wanted. So i have installed this gem and
configured it according to what is written on their page. I mean
included in application controller and specified the default recepients
as well in environments.rb.

But when i run the server, this is giving me error as,

/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:105:in
`const_missing’: uninitialized constant
Rails::Initializer::ExceptionNotification (NameError)

Any idea guys why it is happening… ?

-philip