Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v3.1.0) is shown here.
rescue_action_locally(request, exception)
private
Render detailed diagnostics for unhandled exceptions rescued from a
controller action.
# File actionpack/lib/action_dispatch/middleware/show_exceptions.rb, line 80
def rescue_action_locally(request, exception)
template = ActionView::Base.new([RESCUES_TEMPLATE_PATH],
:request => request,
:exception => exception,
:application_trace => application_trace(exception),
:framework_trace => framework_trace(exception),
:full_trace => full_trace(exception)
)
file = "rescues/#{@@rescue_templates[exception.class.name]}.erb"
body = template.render(:file => file, :layout => 'rescues/layout.erb')
render(status_code(exception), body)
end