instance method
content_type=
Ruby on Rails 3.0.20
Since v3.0.20Signature
content_type=(type)
Basic implementations for content_type=, location=, and headers are provided to reduce the dependency on the RackDelegation module in Renderer and Redirector.
Parameters
-
typereq
Source
# File actionpack/lib/action_controller/metal.rb, line 99
def content_type=(type)
headers["Content-Type"] = type.to_s
end
Defined in actionpack/lib/action_controller/metal.rb line 99
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Metal