Exception Notification Gem and Rails 3

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

    All previous answers are outdated, you can now simply add this to your gemfile:

    gem 'exception_notification', :require => 'exception_notifier'
    

    And edit your production.rb config file as indicated in the readme:

    config.middleware.use ExceptionNotifier,
      :email_prefix => "[Exception] ",
      :sender_address => %{"Exception Notifier" },
      :exception_recipients => %w{you@me.com}
    

提交回复
热议问题