Exception handling for Rails 3