Sha256: ce3ace33a36f2c8f1639bb059325d9d3f80eaf1a2eb21a87b71a9845b22a7af3
Contents?: true
Size: 610 Bytes
Versions: 20
Compression:
Stored size: 610 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 * '' 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
20 entries across 20 versions & 1 rubygems