NOVEMBER 11, 2009
will_paginate normally runs 2 SQL queries - one to retrieve a limited number of records, and one to count all records. To avoid the second COUNT
query one can submit parameter :total_entries
to method paginate
. Today :total_entries
was also added to parameters of initialize_grid
in order to be able to use this functionality of will_paginate.