From: Josh Charles Date: 2005-09-01T03:56:13+09:00 Subject: Re: building a gallery layout an array-less way to do it pictures[] counter = 0 5.times do puts "" 5.times do if ( pictures[ counter ] ) exists puts "" + image code + "" else puts "" end counter ++ end puts "" end I think that is almost legal ruby code. I'm new to ruby, so I don't know exactly. There is probably an even better way of doing this. I'm really gray on ruby array handling