Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
charset=(charset)
public
Set the charset of
the Content-Type header. Set to nil to remove it. If no content type is
set, it defaults to HTML.
# File actionpack/lib/action_controller/response.rb, line 83
def charset=(charset)
headers["Content-Type"] =
if charset
"#{content_type || Mime::HTML}; charset=#{charset}"
else
content_type || Mime::HTML.to_s
end
end