instance method
render_format
Ruby on Rails 5.2.8.1
Since v4.0.13 PrivateSignature
render_format(status, content_type, body)
No documentation comment.
Parameters
-
statusreq -
content_typereq -
bodyreq
Source
# File actionpack/lib/action_dispatch/middleware/public_exceptions.rb, line 41
def render_format(status, content_type, body)
[status, { "Content-Type" => "#{content_type}; charset=#{ActionDispatch::Response.default_charset}",
"Content-Length" => body.bytesize.to_s }, [body]]
end
Defined in actionpack/lib/action_dispatch/middleware/public_exceptions.rb line 41
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::PublicExceptions