method

render_format

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: PublicExceptions
render_format(status, content_type, body) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.