instance method
content_type=
Ruby on Rails 4.2.9
Since v4.0.13Signature
content_type=(content_type)
Sets the HTTP content type.
Parameters
-
content_typereq
Source
# File actionpack/lib/action_dispatch/http/response.rb, line 189
def content_type=(content_type)
@content_type = content_type.to_s
end
Defined in actionpack/lib/action_dispatch/http/response.rb line 189
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Response