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 API

Signature

render_for_default_application(request, wrapper)

No documentation comment.

Parameters

request req
wrapper req
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

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close