title: Rails 3 + Exception Notifier gem: How to set up Exception Notifier site-wide?
body: <p>I'm upgrading a project from Rails 2 to Rails 3. It used to send exception emails for every exception that happened in the site, and I want to implement that functionality into the Rails 3 version too. Does anyone know how I would do a site-wide <code>rescue</code> so that on any errors/exceptions an email is sent?</p>
  
  <p>Would I do this somewhere in the application controller?</p>
  
  <p>In Rails 2 this can be accomplished like this:</p>
  
  <pre><code>class ApplicationController &lt; ActionController::Base
    include ExceptionNotification::Notifiable
    ...
  end
  </code></pre>
  
  <p>However, I don't see any documentation for that in the Rails 3 gem version so I don't know if it's possible</p>
  
  <p><strong>ANSWER</strong></p>
  
  <p>I eventually realized that I did this for another project, and that by default the Rails 3 exception notifier gem provides the above functionality without any need to include any modules. You just have to set up the middleware config and everything happens magically</p>