Forcing :html content_type with render_html method.
Olli Huotari
committed Mar 18, 2012
commit c9245f8e26c9a23b764438a1c2de4792161175c5
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 |
| + | render :inline => @cms_page.content, :layout => app_layout, :status => status, :content_type => :html |
| else | |
| render :text => I18n.t('cms.content.layout_not_found'), :status => 404 | |
| end | |