search for: throw_away

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

2006 Jan 07
3
user engine question
...9;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('' | '')...