instance method
render_format
Ruby on Rails 8.1.2
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 48
def render_format(status, content_type, body)
[status, { Rack::CONTENT_TYPE => "#{content_type}; charset=#{ActionDispatch::Response.default_charset}",
Rack::CONTENT_LENGTH => body.bytesize.to_s }, [body]]
end
Defined in actionpack/lib/action_dispatch/middleware/public_exceptions.rb line 48
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::PublicExceptions