search for: construct_horizontal_menu

Displaying 1 result from an estimated 1 matches for "construct_horizontal_menu".

2006 Jan 07
3
user engine question
...39;, :controller => ''/user'', :action => ''login''}, {:menu => ''logout'', :controller => ''/user'', :action => ''logout''} ] These are cobbled together in my application_helper.rb as: def construct_horizontal_menu(menu_array) menu_strings = [] menu_array.each do |menu_item| menu_text, throw_away = menu_item.delete(:menu) menu_strings << link_if_authorized(menu_text, menu_item) end menu_strings.delete_if{|x| x.strip == ''''} menu_strings.dele...