Set response headers from controller?


#1

How do I do this? Specifically, I want to set the Content-Type to
text/xml; charset UTF-8

Thanks,
Ben


#2

I found the answer here:
http://www.juretta.com/log/2005/06/07/rails_setting_content_type/

@headers[“Content-Type”] = “text/html; charset=utf-8”