method
render_format
rails latest stable - Class:
ActionDispatch::PublicExceptions
render_format(status, content_type, body)private
No documentation available.
# File actionpack/lib/action_dispatch/middleware/public_exceptions.rb, line 46
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