Interesting arrangement


#1

Hi all,

I have been asked to develop an app which basically displays 100
images on a homepage arranged in a 10 x 10 grid.

I have been using attachment_fu to upload images although I hear great
things about paperclip. Anyway, that is the easy part.

Does anyone have any advice about how best to arrange the images on
the page in a clever database way so I can just call all of the
pictures in my controller and they will each be allocated to a space
on the grid automatically?

I know this isn’t a pure rails problem, but whilst I can think of lots
of long-winded manual ways of arranging images, I am sure there must
be better way.

Thanks,

Dan


#2

http://railscasts.com/episodes/28-in-groups-of


#3

Thanks Eric,

Exactly what I was looking for.

Dan