Exception Notification Gem and Rails 3

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

    Keep it simple silly

    In gemfile

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

    In application.rb file

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

    Your are Done.. :*

提交回复
热议问题