Skip to content

Instantly share code, notes, and snippets.

@rondy
Last active March 2, 2021 11:15
Show Gist options
  • Save rondy/bb6bf81b41c1abf07294 to your computer and use it in GitHub Desktop.
Save rondy/bb6bf81b41c1abf07294 to your computer and use it in GitHub Desktop.

From Rails Guides:

You shouldn't do rescue_from Exception or rescue_from StandardError unless you have a particular reason as it will cause serious side-effects (e.g. you won't be able to see exception details and tracebacks during development).

Certain exceptions are only rescuable from the ApplicationController class, as they are raised before the controller gets initialized and the action gets executed. See Pratik Naik's article on the subject for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment