Testing Exception Notification in development
Exception Notification is a great Rails plugin that sends you emails whenever a user encounters an error in your application. It's very customizable, allowing you to configure who receives the email and what content to put into the email. It works without much setup at all. When you want to test it out in development mode, just add the following line to your application_controller.rb
# Uncomment to test Exception Notification in dev mode
# alias :rescue_action_locally :rescue_action_in_public
Exception Notification works by using rescue_action_in_public to capture exceptions that occur when the request is not local. By adding this alias, we can use the same behavior for local requests.
