Exception Notification Gem and Rails 3

后端 未结 17 2072
野趣味
野趣味 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条回答
  •  遇见更好的自我
    2021-01-30 06:01

    I copied and pasted the exception_notification config from old app to new one and it failed. It brought me here and none of the above answers were up-to-date. Since 4.x version the middleware was renamed to ExceptionNotification::Rack, so middleware config looks like that:

    Whatever::Application.config.middleware.use ExceptionNotification::Rack,
     :email => {
       :email_prefix => "[Whatever] ",
       :sender_address => %{"notifier" },
       :exception_recipients => %w{exceptions@example.com}
     }
    

提交回复
热议问题