In my ROR project I have a controller in which I want to always catch exceptions to do some cleanup before the error is propagated back up to the caller. Can this be done in ROR? I want a hook that will be called when any exception is encountered in the controller.
Share
You can use
rescue_from: