Forcing text/html content_type with render_html method.

Olli Huotari committed Mar 18, 2012
commit 18a21dd3400adef54445bfa144d25a39d561c90f
Showing 1 changed file with 1 additions and 1 deletions
app/controllers/cms_content_controller.rb +1 -1
@@ @@ -14,7 +14,7 @@ class CmsContentController < ApplicationController
def render_html(status = 200)
if @cms_layout = @cms_page.layout
app_layout = (@cms_layout.app_layout.blank? || request.xhr?) ? false : @cms_layout.app_layout
- render :inline => @cms_page.content, :layout => app_layout, :status => status, :content_type => :html
+ render :inline => @cms_page.content, :layout => app_layout, :status => status, :content_type => 'text/html'
else
render :text => I18n.t('cms.content.layout_not_found'), :status => 404
end