quattro_4 scribble

scribble 落書き (調べた事をただ落書きする)

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

流した