Exception Notification Gem and Rails 3

后端 未结 17 2073
野趣味
野趣味 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 05:57

    https://github.com/smartinez87/exception_notification

    This gem has been updated for rails 3.x and I just tested on 3.0.7 and the installation is much simpler.

    Gemfile:

    gem 'exception_notification'
    

    Initializer:

    Rails.application.config.middleware.use ExceptionNotifier,
      :email_prefix => "[Whatever] ",
      :sender_address => %{"notifier" },
      :exception_recipients => %w{exceptions@example.com}
    

提交回复
热议问题