Skip to content

Instantly share code, notes, and snippets.

@austenito
Created November 19, 2012 16:32
Show Gist options
  • Save austenito/4111658 to your computer and use it in GitHub Desktop.
Save austenito/4111658 to your computer and use it in GitHub Desktop.
rescue_from ActiveRecord::RecordNotFound, with: :record_not_found
def record_not_found(exception)
Rails.logger.warn "Record Not Found #{params}"
render :nothing => true, :status => :not_found
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment