Forum: Ruby on Rails set response headers from controller?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ben A. (Guest)
on 2006-02-16 03:52
(Received via mailing list)
How do I do this?  Specifically, I want to set the Content-Type to
text/xml; charset UTF-8

Ben A. (Guest)
on 2006-02-16 03:58
(Received via mailing list)
I found the answer here:

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