From: Matt Todd Date: 2006-08-02T14:10:43+09:00 Subject: Re: Rails view template for a gallery I was writing to my local Ruby user group mailing list about it and it dawned on me: I should just partition it! Brian beat me too it, though (good thinking). I didn't find documentation on Enumerable#each_slice, but I did find Array#slice which should do the same thing (though, I just noticed the documentation was for 1.6, so that's probably my problem). But, in retrospect, I'd do what Brian did: it's short, readable, and maybe faster? (I'd have to benchmark it.) M.T.