Quantcast
Channel: Sean's Obsessions » Ruby on Rails
Viewing all articles
Browse latest Browse all 12

Installing ExceptionNotifier for Rails 3

$
0
0

I was just fighting with this, and being new to the Rails 3 way of things, the docs didn’t quite make sense.

Step 1 – Install the plugin

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

Step 2 – Edit config/application.rb:

module MyApp
  class Application  "[MyApp Error] ",
      :sender_address => %{"notifier" },
      :exception_recipients => %w{youraddress@example.com}

3. Verify:

$ rake middleware | grep ExceptionNotifier
use ExceptionNotifier

Now you’ll get any application errors emailed to the addresses in the exception_recipients array.

a


Viewing all articles
Browse latest Browse all 12

Latest Images

Trending Articles





Latest Images