Module: MenuHelper

Included in:
ApplicationHelper
Defined in:
app/helpers/menu_helper.rb

Instance Method Summary collapse

Instance Method Details

#display_menu_front(menu, options = {}, &block) ⇒ Object Also known as: display_menu



2
3
4
5
6
7
# File 'app/helpers/menu_helper.rb', line 2

def display_menu_front(menu, options = {}, &block)
  if !menu.nil? and menu.active?
    lis = get_menu_li(menu.menu_links, options, &block)
     :ul, lis.join.html_safe , :class => options[:ul_class]
  end
end