From: Daniel Schierbeck Date: 2006-12-18T05:33:23+09:00 Subject: Re: Looping: break every x times On Mon, 2006-12-18 at 02:04 +0900, Daniel Finnie wrote: > To get each_with_index you must require 'enumerator' but you could do > Array#each_index and then instead of photo.id you have photos[i].id. You don't need to require enumerator to get #each_with_index, at least not in 1.8.5. Cheers, Daniel