module MenuCreator
@@loaded = false
@@menu_params = []
def menu_options(params)
@@menu_params = params unless @@loaded
end
def menu_bar
return nil unless @@menu_params
html = '
'
html += '
'
html += '
'
html += '
'
html += '
'
@@menu_params.each do |param|
html += '- '
html += link_to(param[:title], '#', class: 'dropdown-toggle')
html += ''
html += '
'
end
html += '
'
html += '
'
html += '
'
html += '
'
html += '
'
html.html_safe
end
end