WSzP
2010-Sep-01 23:02 UTC
[Rails3] How to send Content-type HTTP header in all my html files generated by Rails3
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.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.