Forum: Ruby on Rails Interesting arrangement

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C5de46ba2bbb6ac7a0744ddae42d60f5?d=identicon&s=25 DanC (Guest)
on 2009-03-13 22:07
(Received via mailing list)
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
D93ae163042e0a937941e0ba4d8ed5d7?d=identicon&s=25 Eric (Guest)
on 2009-03-13 23:06
(Received via mailing list)
C5de46ba2bbb6ac7a0744ddae42d60f5?d=identicon&s=25 DanC (Guest)
on 2009-03-14 00:05
(Received via mailing list)
Thanks Eric,

Exactly what I was looking for.

Dan
This topic is locked and can not be replied to.