Forum: Ruby on Rails set response headers from controller?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5f699f59b58693ce313995caf4330486?d=identicon&s=25 Ben Anderson (Guest)
on 2006-02-16 02:52
(Received via mailing list)
How do I do this?  Specifically, I want to set the Content-Type to
text/xml; charset UTF-8

Thanks,
Ben
5f699f59b58693ce313995caf4330486?d=identicon&s=25 Ben Anderson (Guest)
on 2006-02-16 02:58
(Received via mailing list)
I found the answer here:
http://www.juretta.com/log/2005/06/07/rails_settin...

@headers["Content-Type"] = "text/html; charset=utf-8"
This topic is locked and can not be replied to.