No se preocupen, finalmente la función quedó así.
    
Código ruby:
Ver original- def menu(location = 'header', bars = 1) 
-      
-     menu = Menu.order("`order` ASC").where( 
-            "location = ? AND published = ?", location, true) 
-      
-     if menu.count > 0 
-        
-       content_tag :nav, :id => "menu-#{location}" do  
-         chunk_array(menu, bars).collect {|menu| 
-           concat(content_tag :ul do  
-             menu.collect {|item| 
-               concat(content_tag(:li, 
-                 content_tag(:a, item.name, :href => item.url)) 
-               ) 
-             } 
-           end) 
-         } 
-       end 
-              
-     end 
-      
-   end 
Gracias. 
