Skip to content

Instantly share code, notes, and snippets.

@dinks
Created February 9, 2014 12:42
Show Gist options
  • Select an option

  • Save dinks/8898546 to your computer and use it in GitHub Desktop.

Select an option

Save dinks/8898546 to your computer and use it in GitHub Desktop.
Rescue from
class ApplicationController < ActionController::Base
rescue_from ActiveRecord::RecordNotFound, with: :handle_not_found
private
def handle_not_found
# ...
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment