Multi column lists using in_groups_of
This code uses the basic technique outlined in this article to split the list up into several lists of a fixed size and then use css to float them into columns.
This blog is about startups, blogging, Ruby On Rails, virtualization and cloud computing, photography, customer service, marketing, ux and design, git, and lots more.
Accessible, manageable, virtualized application stacks ready to download or deploy to the cloud!
Reach me at yan at pritzker.ws
This code uses the basic technique outlined in this article to split the list up into several lists of a fixed size and then use css to float them into columns.
Thank you for this post, but I think this is not yet finished. If the number of friends is 9 you will get 5 columns instead of 4.
I’ve posted this code on http://refactormycode.com/codes/167-split_in_groups-instead-of-in_groups_of to see if people have a similar problem.
© skwpspace. Powered by WordPress using a DePo Clean Theme modified by Yan Pritzker.
1 Comment