Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View RayParkerBassPlayer's full-sized avatar

Ray Parker RayParkerBassPlayer

  • Nibble and Byte Software
  • New York, Austin, Cleveland
View GitHub Profile
--ignore-dir=log
@RayParkerBassPlayer
RayParkerBassPlayer / application_controller.rb
Last active December 20, 2019 18:09
Default Exception Handling, Rails
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