Don’t reinvent the wheel with Rails exception handling
With the built-in rescue_responses setting, you can map exceptions to error pages in a simple, declarative way. It automatically renders JSON, too! https://mattbrictson.com/blog/handling-rails-exceptions
Post a comment