lib/comfortable_mexican_sofa/view_methods.rb
# Content of a page block. This is how you get content from page:field
# Example:
#   cms_page_content(:left_column, CmsPage.first)
#   cms_page_content(:left_column) # if @cms_page is present
Content of a page block.
Content of a page block .
def cms_page_content(identifier, page = nil)
    return '' unless page ||= @cms_page
    return '' unless block = page.blocks.find_by_identifier(identifier)
    render :inline => ComfortableMexicanSofa::Tag.process_content(page, block.content)
  end
def cms_page_content ( identifier , page = nil ) return '' unless page ||= @cms_page return '' unless block = page . blocks . find_by_identifier ( identifier ) render :inline => ComfortableMexicanSofa :: Tag . process_content ( page , block . content ) end
Content of a page block.
Content of a page block .
identifier
<not_specific>
page
<not_specific>