Topic: HOWTO: Exception Notifier - Ruby on Rails plugin

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

My homepage: http://www.komendera.com/
Working at: http://www.abloom.at/
My blog: soaked and soaped http://soakedandsoaped.com/

Re: HOWTO: Exception Notifier - Ruby on Rails plugin

Handy post, I'll be looking into this soon.

Re: HOWTO: Exception Notifier - Ruby on Rails plugin

It totaly does not work !

Re: HOWTO: Exception Notifier - Ruby on Rails plugin

What's exactly your problem? May be we can help you to get it work.

My homepage: http://www.komendera.com/
Working at: http://www.abloom.at/
My blog: soaked and soaped http://soakedandsoaped.com/

Re: HOWTO: Exception Notifier - Ruby on Rails plugin

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.

If there is a post/website/blog entry/whatever that answers my questions, please don't hesitate to simply post a link.  I know it can get old fast to answer the same question hundreds of times...

Re: HOWTO: Exception Notifier - Ruby on Rails plugin

Hi.

I have installed the plugin. I have also included this in my Application Controller:

include ExceptionNotifiable
local_addresses.clear

But no email is sent. My email settings are right, because I'm sending emails when user register.

Any ideas what could be wrong ?

Re: HOWTO: Exception Notifier - Ruby on Rails plugin

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.

I can't stop thinking about Rails. Can't sleep, can't eat, can't concentrate on work. It must be love.

Re: HOWTO: Exception Notifier - Ruby on Rails plugin

I also had to set this option in config/environments/development.rb:

config.action_controller.consider_all_requests_local = false