Technology and Software

Hoptoad and rescue_action_in_public

Hoptoad is a nice service that lets you send all the exceptions of your Rails application to a central server. That’s a way better that having to scan log files for errors. You alse get an email notification of each event.

Unfortunately hoptoad won’t work straight out of the box (you install it with script/plugin install git:// if you define rescue_action_in_public, because the latter will intercept the exceptions and prevent hoptoad to get at them.

It took me a while before figuring it out but the fix was easier to find: just add one line at the end of the method.

def rescue_action_in_public(exception)
  <your code here>
  notify_hoptoad exception

That’s it!