mislav/will_paginate — Issue #211: Will paginate is dropping me the pages
Author: workdreamer
Created: 2011-12-13 18:34:18+00:00
State: open

It's only in one case when i am ordering a statute.

@cities.ordering(params[:name])

#raise @cities.length.inspect #if i do this here i receive 14
@cities = @cities.paginate(:page => params[:page])

if the ordering is no executed i receive two pages. otherwise it return only one page. I'm doing only a ORDER BY cities.name DESC

Thank you.