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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
http://railscasts.com/episodes/28-in-groups-of On Mar 13, 2:06 pm, DanC <d.m.coleg...-VlwAjOFxKoqFxr2TtlUqVg@public.gmane.org> wrote:> 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks Eric, Exactly what I was looking for. Dan On 13 Mar, 22:05, Eric <ericgh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> http://railscasts.com/episodes/28-in-groups-of > > On Mar 13, 2:06 pm, DanC <d.m.coleg...-VlwAjOFxKoqFxr2TtlUqVg@public.gmane.org> wrote: > > > > > 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- Hide quoted text - > > - Show quoted text ---~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---