search for: columns_numb

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

Did you mean: columns_number
2007 Mar 22
2
method to display the result of find (..) in a view
...order.each do |column| selection += column+"," # appends members of the order array to the string end resultset = find(:all, :select => [selection.chop]) #queries the DB resultset #returns the array of Customer objects limited by :select end end 3. The view <% columns_number = @order.length %> <table cellspacing=0 class="listing"> <tr> <th colspan="<%=columns_number%>"><%=Customer.table_name%></th></tr> <tr> <% @order.each do |column| %><th><%=column%></th><%end%> &lt...