instance method
rescue_action_locally
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
rescue_action_locally(exception)
Render detailed diagnostics for unhandled exceptions rescued from a controller action.
Parameters
-
exceptionreq
Source
# File actionpack/lib/action_controller/rescue.rb, line 130
def rescue_action_locally(exception)
@template.instance_variable_set("@exception", exception)
@template.instance_variable_set("@rescues_path", RESCUES_TEMPLATE_PATH)
@template.instance_variable_set("@contents",
@template.render(:file => template_path_for_local_rescue(exception)))
response.content_type = Mime::HTML
render_for_file(rescues_path("layout"),
response_code_for_rescue(exception))
end
Defined in actionpack/lib/action_controller/rescue.rb line 130
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Rescue