search for: fill_with

Displaying 2 results from an estimated 2 matches for "fill_with".

Did you mean: fail_with
2008 Jan 01
7
in_vertical_groups_of
...retty cool, but wanted to go vertically down the column first, instead of horizontally 1 4 7 2 5 3 6 Well, last night I decided I really needed this vertical grouping, so ... module ActiveSupport module CoreExtensions module Array module Grouping def in_vertical_groups_of(number, fill_with = nil, &block) collection = dup per_column = (collection.size.to_f / number).ceil new_collection = [] (0...per_column).each do |i| (0...number).each do |multiplier| offset = i + (per_column * multiplier) new_collection << (offset < co...
2006 Jul 20
11
3 columns
Hi all, Not really sure what to put in the title so hope people still open this! What I want to do is produce something like this Col1 Col2 Col3 data1 data2 data3 data4 data5 data6 data7 data8 data9 data.. data.. data.. data.. data.. data.. data-n data-n+1 data-n+2 I can get the data back from my db