Displaying 1 result from an estimated 1 matches for "menu_text".
Did you mean:
menu_ext
2006 Jan 07
3
user engine question
...t; ''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? ? /login/ :
/logout/)}
menu_strings.join('' | &...