Rails: Setting Content Type | June 07, 2005-->
June 07, 2005class ApplicationController < ActionController::Base before_filter :set_default_content_type def set_content_type(content_type) @response.headers["Content-Type"] = content_type end def set_default_content_type set_content_type("text/html; charset=utf-8") end end

Chris Nolan.ca says: kekova.ca
Thanks for the tidbit.
FYI, on my system utf-8 needed to be UTF-8 inorder to work for some reason?
Chris Nolan.ca says: http://kekova.ca/
Me again, turns out this breaks RJS. See here for details – http://newbieonrails.topfunky.com/articles/2006/02/01/rjs-and-content-type-header
Stefan says: juretta.com
Hi Chris,
yeah i notcied that setting the content type in application_controller this way breaks RJS. Thanks for the pointer!