Matenia Rossides wrote:
> there is a function called in_groups_of .. there is a railscast
> episode about it.
> I have used a manual scrolling slider similar to what you want at the
> bottom of http://www.conikitv.com/ where it will grab the first
> hundred videos and display them in groups of 10 using the slider.
> 
> Basically the thinking is
>  - Fetch the items you want to show
>  - display them in groups of 10
>       render how each group is displayed
>  - render the container for each group

For efficiencies sake you shouldn't  fetch all the items up-front. The 
user may never scroll/page past the first couple of groups. Better to 
use will_paginate to fetch the additional groups.
-- 
Posted via http://www.ruby-forum.com/.

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to