Wes Gamble
2006-Sep-12 22:25 UTC
Plugin class seen from environment.rb but not production.rb!
All, I''m trying to add in the Exception Notification plugin described in Rails Recipe #47. I add the following to my environment.rb file: #ExceptionNotifier configuration ExceptionNotifier.exception_recipients = %w(blah blah) ExceptionNotifier.sender_address = %("Application Error" <blah-7Ts6kVb0ZJk@public.gmane.org>) ExceptionNotifier.email_prefix = "[ESimplyOnline]" Then I add the following to my production.rb file to add another recipient to the list of recipients. ExceptionNotifier.exception_recipients << %(blah2-4aSrHoA6eYcAvxtiuMwx3w@public.gmane.org) This entry in production.rb generates a `const_missing'': uninitialized constant ExceptionNotifier (NameError) when I try to start up Rails. If I remove it, Rails starts fine. So I know that the entry in environments.rb is ok. I am using Apache in conjunction with dispatch.fcgi. Does the production.rb file load without knowledge of the plugins? Should I enhance the ExceptionNotifier.exception_recipients array in application.rb instead? Thanks, Wes -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Wes Gamble
2007-Jan-26 05:28 UTC
Re: Plugin class seen from environment.rb but not production
I never figured this out, Mike, sorry. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---