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 81
def charset=(charset)
headers["Content-Type"] =
if charset
"#{content_type || Mime::HTML}; charset=#{charset}"
else
content_type || Mime::HTML.to_s
end
end