RailsCasts #53 Handling Exceptions (revised)
#53 Handling Exceptions (revised) - RailsCasts
- config.consider_all_requests_local = false
- config.action_dispatch.rescue_responses["ProductsController::Forbidden"] = :forbidden
- rescue_from with:
- def forbidden(exception)
- render
- def forbidden(exception)
流した