# Interesting arrangement

**URL:** <https://www.ruby-forum.com/t/interesting-arrangement/162804>\
**Category:** Rails\
**Created:** [March 13, 2009, 10:07pm UTC](https://www.ruby-forum.com/t/interesting-arrangement/162804 "2009-03-13T22:07:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanC](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@DanC](https://www.ruby-forum.com/u/DanC)\
**Post date:** [March 13, 2009, 10:07pm UTC](https://www.ruby-forum.com/t/interesting-arrangement/162804/1 "2009-03-13T22:07:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![DanC](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@DanC](https://www.ruby-forum.com/u/DanC)\
**Post date:** [March 13, 2009, 11:06pm UTC](https://www.ruby-forum.com/t/interesting-arrangement/162804/2 "2009-03-13T23:06:26Z")

</div>

> **[\#28 in\_groups\_of - RailsCasts](http://railscasts.com/episodes/28-in-groups-of)**
>
> Short Ruby on Rails screencasts containing tips, tricks and tutorials. Great for both novice and experienced web developers.

---

<div class="post-metadata">

**Author:** ![DanC](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@DanC](https://www.ruby-forum.com/u/DanC)\
**Post date:** [March 14, 2009, 12:05am UTC](https://www.ruby-forum.com/t/interesting-arrangement/162804/3 "2009-03-14T00:05:34Z")

</div>

Thanks Eric,

Exactly what I was looking for.

Dan
