Exception Notification Gem and Rails 3

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

    I am using rails 3.0.4 and had the same issue as above. The only solution that worked for me was to install the v1.2 of the exception_notification for rails 3 (make sure you use the correct branch/version) as a PLUGIN

    rails plugin install https://github.com/railsware/exception_notification.git
    

    and use in production.rb the code everyone mentions:

    config.middleware.use ExceptionNotifier,
      :email_prefix => "[some prefix] ",
      :sender_address => %{"Notifier" },
      :exception_recipients => %w{recipient@domain.com}
    

    It definitely did not work for me as a gem and the readme does say " Exception Notifier Plugin for Rails " and mentions nothing about installing it as gem.

    Harry

提交回复
热议问题