Sha256: 983d9ce6d37f4ef5e1f34d7d8e29f3c4e44ec0927442ac0cb73237ba33e248ac
Contents?: true
Size: 552 Bytes
Versions: 2
Compression:
Stored size: 552 Bytes
Contents
module EffectivePagesHelper def effective_page_header_tags(options = {}) @page ||= nil [ content_tag(:title, (@page_title || options[:title] || @page.try(:title))), "<meta content='#{options[:meta_description] || @page.try(:meta_description)}' name='description' />", ].join("\n").html_safe end def application_root_to_effective_pages_slug Rails.application.routes.routes.find { |r| r.name == 'root' and r.defaults[:controller] == 'Effective::Pages' and r.defaults[:action] == 'show' }.defaults[:id] rescue nil end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
effective_pages-0.8.1 | app/helpers/effective_pages_helper.rb |
effective_pages-0.8.0 | app/helpers/effective_pages_helper.rb |