1 2 3 4 5 6 7
Gaffe.configure do |config| config.errors_controller = { %r[^/api/] => 'Api::ErrorsController', %r[^/] => 'ErrorsController', } end Gaffe.enable!