Forum: Ruby on Rails [Rails3] How to send Content-type HTTP header in all my html files generated by Rails3

Posted by WSzP (Guest)
on 2010-09-02 01:12
(Received via mailing list)
Hello,
I wish to replicate this:
<?php
header('Content-type: text/html; charset=utf-8');
?>
with Rails 3 in each and every view I got. I guess I should look at
application.html.erb to add something.
Not only for avoiding this bug: 
http://www.ravelrumba.com/blog/ie-8-charset-bug/
but also it makes sense to send the html files generated by my views
with such header.
Can you help me please?
Thanks a lot.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.