instance method
render
Ruby on Rails 8.0.4
Since v3.2.22.5 PrivateSignature
render(status, content_type, body)
No documentation comment.
Parameters
-
statusreq -
content_typereq -
bodyreq
Source
# File actionpack/lib/action_dispatch/middleware/public_exceptions.rb, line 43
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
Defined in actionpack/lib/action_dispatch/middleware/public_exceptions.rb line 43
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::PublicExceptions