Copy and paste from my blog: http://sas.sparklingstudios.com/article … ils-plugin
Yesterday I came over Exception Notifier.
I found it really useful because it is really easy to install and you can instantly react to Application Errors. Your customers don’t have to notify you because you get a bunch of information to track the error via email.
3 easy steps are necessary to set up Exception Notifier:
1. Install the exception_notification plugin:
ruby script/plugin install exception_notification
2. Configure exception_notification: Add following line to your config/environment.rb file:
Offline
Handy post, I'll be looking into this soon.
Offline
What's exactly your problem? May be we can help you to get it work.
Offline
I'm a Rails newb, so I don't know what I'm talking about, but...
It only seems to work if you are running your server on a non-local machine. It has something to do with the rescue_action_in_public method. I think you can override the rescue_action method to call the rescue_action_in_public method, at which point it will send the emails. However, I don't think this is what you want, as it stops displaying all the debug info on the screen when an exception occurs.
Offline
Offline
Another thing to mention for anyone who tries this (and like me didn't read the complete readme first!), this won't mail you on RecordNotFound or UnknownAction exceptions.
So while those might be the simplest exceptions to raise on purpose, you'll have to get more creative when it comes to testing it!
Another thing worth mentioning is that it also handily produces 404s for both of these too.
Offline
I also had to set this option in config/environments/development.rb:
config.action_controller.consider_all_requests_local = false
Offline