Class: CmsContentController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- CmsContentController
- Defined in:
- app/controllers/cms_content_controller.rb
Instance Method Summary collapse
Instance Method Details
#render_css ⇒ Object
17 18 19 |
# File 'app/controllers/cms_content_controller.rb', line 17 def render_css render :text => @cms_layout.css, :content_type => 'text/css' end |
#render_html(status = 200) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'app/controllers/cms_content_controller.rb', line 8 def render_html(status = 200) if layout = @cms_page.layout app_layout = layout.app_layout.blank?? false : layout.app_layout render :inline => @cms_page.content, :layout => app_layout, :status => status else render :text => I18n.t('cms.content.layout_not_found'), :status => 404 end end |
#render_js ⇒ Object
21 22 23 |
# File 'app/controllers/cms_content_controller.rb', line 21 def render_js render :text => @cms_layout.js, :content_type => 'text/javascript' end |