Method: PagesHelper#page_content

Defined in:
app/helpers/pages_helper.rb

#page_content(options = {}) ⇒ Object

Return the specified page part content



112
113
114
115
116
117
118
119
# File 'app/helpers/pages_helper.rb', line 112

def page_content(options={})
  options = {
    :page => @page,
    :part => 'body'
  }.with_indifferent_access.merge(options)
  
  options[:page].page_parts.detect { |p| p.title == options[:part].to_s } if options[:page]
end