Displaying 1 result from an estimated 1 matches for "menu_str".
Did you mean:
menu_ptr
2006 Jan 07
3
user engine question
...#39;, :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.delete_if {|item| item =~ (user...