module ApplicationHelper def menu_builder ret = start_menu ret += menu_element('Strona głowna', '/', "fa fa-dashboard fa-fw") ret += menu_level_open('Konfiguracja', "fa fa-wrench fa-fw") ret += menu_element('Grupy produktow', '/product_groups', '') ret += menu_element('Produkty', '/products', '') ret += menu_level_close ret += close_menu return raw(ret) end def start_menu() '' end end