Exception Notification

I am using the the exception notification plugin for rails version 2.3

This is what I have in my environment.rb file
   ExceptionNotification::Notifier.exception_recipients =
%w(myteam@gmail.com)

In my app controller..

    include ExceptionNotification::Notifiable

After installation when I start the server I get the following error

  /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
active_support/dependencies.rb:443:in `load_missing_constant'
        /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
active_support/dependencies.rb:80:in `const_missing'
        /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
active_support/dependencies.rb:92:in `const_missing'
        /home/myusername/Apps/myapp/config/environment.rb:115
        /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/
initializer.rb:111:in `run'
        /home/myusername/Apps/myapp/config/environment.rb:10
        /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
        /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
        /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
active_support/dependencies.rb:156:in `require'
        /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
active_support/dependencies.rb:521:in `new_constants_in'
        /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
active_support/dependencies.rb:156:in `require'
        /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/
server.rb:84
        /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
        /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
        ./script/server:3
        /usr/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/lib/
ruby-debug-ide.rb:109:in `debug_load'
        /usr/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/lib/
ruby-debug-ide.rb:109:in `debug_program'
        /usr/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9/bin/
rdebug-ide:87
        /usr/local/bin/rdebug-ide:19:in `load'
        /usr/local/bin/rdebug-ide:19
Uncaught exception: uninitialized constant ExceptionNotification

When I launch the irb console it says..

/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
active_support/dependencies.rb:443:in
`load_missing_constant':NameError: uninitialized constant
ExceptionNotification
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
active_support/dependencies.rb:443:in
`load_missing_constant':NameError: uninitialized constant
ApplicationController

Anyone?

It says exception notifier isn’t loaded. You will have to work from there to find out why:

  • If it’s a gem, you might not have included it in your config.gem section

  • If it’s a plugin, you might not have installed it into the vendor/plugins directory

Best regards

Peter De Berdt

I have tried both. Made sure the plugin is installed and the gem
exception_notification (2.3.3.0)
is installed and it's in my enviornment.rb file as configm.gem
"exception_notification"

I followed to documentation to the T.

It's on rails 2.3.5.