This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rescue_from Exception, :with => :handle_exceptions | |
def handle_exceptions(exception) | |
cookies[:exception] = exception.message | |
Rails.logger.error exception.backtrace.join("\n") | |
redirect_to error_page_path | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--ignore-dir=log |