Module: ActiveAdmin::Cms::CmsHelper

Defined in:
lib/active_admin/cms/helpers/cms_helper.rb

Instance Method Summary collapse

Instance Method Details

#cms_content(page, content_key, options = {}) ⇒ Object

Raises:

  • (Exceptions::MissingPage)


4
5
6
7
8
# File 'lib/active_admin/cms/helpers/cms_helper.rb', line 4

def cms_content page, content_key, options = {}
  raise Exceptions::MissingPage if !page
  #debugger
  page.content_for(content_key).to_html(options).html_safe if page.content_for(content_key)
end