instance method
content_type=
Ruby on Rails 4.1.16
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 184
def content_type=(content_type)
@content_type = content_type.to_s
end
Defined in actionpack/lib/action_dispatch/http/response.rb line 184
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Response