Hi I''m looking to implement a small foto album into one of my projects. For getting the data out of the database I''m using pictures.each do... Is it possible to use the iterator to get me three columns of pictures and then break down to the next line of the table? Picture Picture Picture Picture Picture Picture Picture Picture Picture How would I do something like this? Thanks for your help. tk --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 5 Feb 2008, at 08:14, tk wrote:> > Hi > > I''m looking to implement a small foto album into one of my projects. > For getting the data out of the database I''m using pictures.each do... > > Is it possible to use the iterator to get me three columns of pictures > and then break down to the next line of the table? >in_groups_of ? Fred> Picture Picture Picture > Picture Picture Picture > Picture Picture Picture > > > How would I do something like this? > > Thanks for your help. > tk > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
that might be it, i''ll check it. On 5 Feb., 10:45, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 5 Feb 2008, at 08:14, tk wrote: > > > > > Hi > > > I''m looking to implement a small foto album into one of my projects. > > For getting the data out of the database I''m using pictures.each do... > > > Is it possible to use the iterator to get me three columns of pictures > > and then break down to the next line of the table? > > in_groups_of ? > > Fred > > > Picture Picture Picture > > Picture Picture Picture > > Picture Picture Picture > > > How would I do something like this? > > > Thanks for your help. > > tk--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---