classApplication# .....# somewhere in this block put the following:config.middleware.use"::ExceptionNotifier",:email_prefix=>"[MyApp Error] ",:sender_address=>%{"notifier" },:exception_recipients=>%w{youraddress@example.com}
3. Verify:
12
$ rake middleware | grep ExceptionNotifier
use ExceptionNotifier
Now you’ll get any application errors emailed to the addresses in the exception_recipients array.
Comments
I’m trying something new here. Talk to me on Twitter with the button above, please.