Sha256: 4dc0e11eca3431238d395c01fa094fab763f7d0d7a73e2c2ac491eb86b2cb6d5
Contents?: true
Size: 703 Bytes
Versions: 2
Compression:
Stored size: 703 Bytes
Contents
module LayoutHelper include ScaffoldLogic::FormHelper include ScaffoldLogic::Helper include ScaffoldLogic::TabInterfaceHelper def breadcrumbs unless controller?('home') && action?(/home|index/) html = [ link_to('Home', root_path) ] # html << link_to( 'Foo', foo_path ) if controller?('FoosController') (html * ' > ').html_safe end end def set_title(title = nil, window_title = nil) app_name ||= 'SEO Logic' window_title ||= title if title.nil? content_for(:title) { app_name } content_for(:page_title) { } else content_for(:title) { window_title + " - #{app_name}" } content_for(:page_title) { title } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
site_logic-1.6.7 | app/helpers/layout_helper.rb |
site_logic-1.6.6 | app/helpers/layout_helper.rb |