method
render
v7.1.3.2 -
Show latest stable
- Class:
ActionDispatch::PublicExceptions
render(status, content_type, body)private
No documentation available.
# File actionpack/lib/action_dispatch/middleware/public_exceptions.rb, line 37
def render(status, content_type, body)
format = "to_#{content_type.to_sym}" if content_type
if format && body.respond_to?(format)
render_format(status, content_type, body.public_send(format))
else
render_html(status)
end
end