If I understand what you are trying to do, you want the first page to show results from the last 10 days, the next page to show results from the previous 10 days, etc. If each day only has one result (or every page has the same number of results), then just add ':per_page => 10 (or whatever number of records you want on each page)' to the #paginate call to tell paginate to return results for 10 days. If each day has a variable number of results, will_paginate is not well-suited to what you are trying to do. Will_paginate is oriented towards partitioning your results into groups of 'n' and efficiently moving among groups. If you still want to use will_paginate, change your query to produce one record per day, set :per_page => 10, and find a way in your view to expand each day into all of it's results.
On Nov 9, 2012, at 3:08 AM, Lee Irving <irvin...@gmail.com> wrote: