Forum: Ruby on Rails exception_notification plugin not sending mails in developme

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Sean H. (Guest)
on 2006-05-06 01:01
(Received via mailing list)
Hi everyone,

So, I've got exception_notification working now, but not in
development mode on localhost.  In my ApplicationController, I've


Shouldn't that be enough?

Thank you!

Sean H. (Guest)
on 2006-05-08 23:24
(Received via mailing list)
Another update--I really can't get it to send exceptions at all, and
I'm not sure why.  For instance, I'm forcing a LDAP::ResultError
exception, but no mail is sent.  I've even cleared out the addresses
array in local_addresses.

What I'd like to do is to use exception_notification within a rescue
clause.  For instance:

  # some stuff ehre
rescue Exception => ex
  # Send an email
  # Other operations to handle the rescue.

Am I barking up the wrong tree with this plugin?


Jamis B. (Guest)
on 2006-05-10 18:56
(Received via mailing list)
To send exception emails in dev mode, you need to be sure and change
the following line in config/environments/development.rb:

   config.action_controller.consider_all_requests_local = true

Set that value to false. Otherwise, regardless of how you set
local_addresses, all requests are considered local.

Hope that helps,

Sean H. (Guest)
on 2006-05-10 23:16
(Received via mailing list)
It certainly does!  Thank you!

Now, when I hit other types of exceptions (in one case, an LDAP
exception), I get this error:


uninitialized constant ExceptionNotifiable
RAILS_ROOT: /Users/sean/Projects/Rails/MagicHat/public/../config/..

Application Trace | Framework Trace | Full Trace
This error occured while loading the following files:

Thoughts on that one?  Does this handle non-Rails exceptions? I have
"include ExceptionNotifiable" in my application.rb.


This topic is locked and can not be replied to.