class ActionController::Responder
def navigation_behavior(error)
def navigation_behavior(error) if get? raise error elsif has_errors? && default_action render error_rendering_options else redirect_to navigation_location, status: redirect_status end end