Module: MenuHelper
- Included in:
- ApplicationHelper
- Defined in:
- app/helpers/menu_helper.rb
Instance Method Summary collapse
- #display_menu_front(menu, options = {}, &block) ⇒ Object (also: #display_menu)
Instance Method Details
#display_menu_front(menu, options = {}, &block) ⇒ Object Also known as:
2 3 4 5 6 7 |
# File 'app/helpers/menu_helper.rb', line 2 def (, = {}, &block) if !.nil? and .active? lis = (., , &block) content_tag :ul, lis.join , :class => [:ul_class] end end |