Sha256: a25fe60334735ff7919774c13886c4f39fbfd212f68f3b4b1ed5345d2ab62e44

Contents?: true

Size: 517 Bytes

Versions: 3

Compression:

Stored size: 517 Bytes

Contents

module PageHelper
  def title(page_title)
    content_for(:title) { page_title.to_s + " | BlizzardLaw.com" }
  end
  
  def page_name(name)
    content_for(:page_name) { name.to_s }
  end
  
  def meta_desc(desc)
    content_for(:meta_desc) { desc.to_s }
  end
  
  def meta_keywords(desc)
    content_for(:meta_keywords) { desc.to_s }
  end
  
  def sidebar(content)
    content_for(:sidebar) { content.to_s }
  end  
  
  def nav_link(page)
    link_to page.titleize, page_path(page.downcase), :id => page
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
creature-0.0.3 lib/generators/pages/templates/page_helper.rb
creature-0.0.2 lib/generators/pages/templates/page_helper.rb
creature-0.0.1 lib/generators/pages/templates/page_helper.rb