Exception Notification Gem and Rails 3

后端 未结 17 2080
野趣味
野趣味 2021-01-30 05:16

I\'m trying to get this up and running, but I see \"uninitialized constant ExceptionNotifier\" whenever I start my server.

http://github.com/rails/exception_notificatio

17条回答
  •  猫巷女王i
    2021-01-30 05:58

    Ok, its working now for me:

    # Gemfile
    gem "exception_notification", :git => "git://github.com/rails/exception_notification", :require => 'exception_notifier'
    
    # application.rb, inside the config block
    config.middleware.use ::ExceptionNotifier,
      :email_prefix => "ApplicationName-Errors: ",
      :sender_address => %w{office@application.com},
      :exception_recipients => %w{office@application.com}
    

提交回复
热议问题