instance method
render_format
Ruby on Rails 4.2.9
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 39
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 39
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::PublicExceptions