Sha256: 4ce152772efe83cd6ddb4c0b13f5287b58869b77706807aba4a4ef07808f4f1d
Contents?: true
Size: 633 Bytes
Versions: 14
Compression:
Stored size: 633 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) if title.nil? content_for(:title) { 'Editorial Logic' } content_for(:page_title) { } else content_for(:title) { title + ' - Editorial Logic' } content_for(:page_title) { title } end end end
Version data entries
14 entries across 14 versions & 1 rubygems