For the life of me, I cannot get the Exception Notification plugin to send email when in development mode. From what I can tell, ExceptionNotifiable.rescue_action_in_public never executes. If you have any thoughts, I''d love to hear them. NOTES - I''m running Rails 2.0.2 - I''ve restarted Webrick several times - for testing purposes, I''m forcing rails to throw a NameError exception - I know ActionMailer has been setup properly as I can send mail through it. # [environment.rb] Rails::Initializer.run do |config| # ... config.action_controller.consider_all_requests_local = false # ... end ExceptionNotifier.exception_recipients = %w(user-3EW9midWFo1BDgjK7y7TUQ@public.gmane.org) ExceptionNotifier.sender_address = %w(service-3EW9midWFo1BDgjK7y7TUQ@public.gmane.org) # [application.rb] class ApplicationController < ActionController::Base local_addresses.clear end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
My original post was missing a line of code. include ExceptionNotifiable is being used, and emails are still not being sent out. # [environment.rb] Rails::Initializer.run do |config| # ... config.action_controller.consider_all_requests_local = false # ... end ExceptionNotifier.exception_recipients = %w(u...-3EW9midWFo1BDgjK7y7TUQ@public.gmane.org) ExceptionNotifier.sender_address = %w(serv...-3EW9midWFo1BDgjK7y7TUQ@public.gmane.org) # [application.rb] class ApplicationController < ActionController::Base include ExceptionNotifiable local_addresses.clear end --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
In case anyone reads this, the Rails project added the following line to environments/development.rb: config.action_controller.consider_all_requests_local = true I had no idea it was even there. Commenting out # config.action_controller.consider_all_requests_local = true and running # [environment.rb] Rails::Initializer.run do |config| # ... config.action_controller.consider_all_requests_local = false # ... end ExceptionNotifier.exception_recipients = %w(u...-3EW9midWFo1BDgjK7y7TUQ@public.gmane.org) ExceptionNotifier.sender_address = %w(serv...-3EW9midWFo1BDgjK7y7TUQ@public.gmane.org) # [application.rb] class ApplicationController < ActionController::Base include ExceptionNotifiable local_addresses.clear end WORKS!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---