From: stephen O'D Date: 2006-08-02T20:50:04+09:00 Subject: Re: Rails view template for a gallery Matt Todd wrote: > 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. Guys thats great - I new there had to be a tidier way! Can I also say thats about the most helpful response I have ever had on usenet after posting in the wrong group! >From now on I put rails questions in the rails group. Cheers, Stephen.