Module: DuffyHelper

Defined in:
lib/duffy/duffy_helper.rb

Instance Method Summary collapse

Instance Method Details

This creates menu entries in the format Zurb Foundation expects. It’s just an <li> with a link inside it. menu_tag(‘Help’, help_path) => <li><a href=“/help”>Help</a></li>



6
7
8
9
# File 'lib/duffy/duffy_helper.rb', line 6

def menu_tag(title, link, options = {})
  ActiveSupport::Deprecation.warn('This method will be removed without replacement in future versions')
  (:li, link_to(title, link), options)
end