Exception Notification Gem and Rails 3

后端 未结 17 2233
野趣味
野趣味 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:59

    The official repo on github is now: https://github.com/smartinez87/exception_notification

    In the Gemfile

    gem "exception_notification", :require => 'exception_notifier', :git => "https://github.com/smartinez87/exception_notification.git"
    

    In config\initializers\exception_notification.rb

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

提交回复
热议问题