instance method
render_for_default_application
Ruby on Rails 5.0.7.2
Since v5.0.7.2 Last seen in v5.0.7.2 Private — implementation detail, not part of the public APISignature
render_for_default_application(request, wrapper)
No documentation comment.
Parameters
-
requestreq -
wrapperreq
Source
# File actionpack/lib/action_dispatch/middleware/debug_exceptions.rb, line 81
def render_for_default_application(request, wrapper)
template = create_template(request, wrapper)
file = "rescues/#{wrapper.rescue_template}"
if request.xhr?
body = template.render(template: file, layout: false, formats: [:text])
format = "text/plain"
else
body = template.render(template: file, layout: 'rescues/layout')
format = "text/html"
end
render(wrapper.status_code, body, format)
end
Defined in actionpack/lib/action_dispatch/middleware/debug_exceptions.rb line 81
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::DebugExceptions