protected Method

Rescue.rescue_action_locally(exception)

Render detailed diagnostics for unhandled exceptions rescued from a controller action.

Source Code

# File action_controller/rescue.rb, line 173
def rescue_action_locally(exception)
  add_variables_to_assigns
  @template.instance_variable_set("@exception", exception)
  @template.instance_variable_set("@rescues_path", File.dirname(rescues_path("stub")))
  @template.send!(:assign_variables_from_controller)

  @template.instance_variable_set("@contents", @template.render_file(template_path_for_local_rescue(exception), false))

  response.content_type = Mime::HTML
  render_for_file(rescues_path("layout"), response_code_for_rescue(exception))
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.