other solution to will_paginate:
http://rdoc.info/projects/fnando/has_paginate
can used named scopes introduced in rails 2.1 http://mattpayne.ca/blog/post/named-scope
A relatively new alternative to the omnipresent will_paginate is the paged scopes gem at http://github.com/mholling/paged_scopes
I just link to the following 3 blog posts by the author which sum up pretty much all of the advantages and uses of this gem.
Part I: http://code.matthewhollingworth.net/articles/2009-06-28-paged-scopes-a-w...
Part II: http://code.matthewhollingworth.net/articles/2009-06-30-paged-scopes-par...
Part III: http://code.matthewhollingworth.net/articles/2009-07-02-paged-scopes-par...
Installation instructions:
gem sources -a http://gemcutter.org
sudo gem install active_url
sudo gem install subdomain_routes
sudo gem install paged_scopes
And in the environment.rb file for a Rails project:
config.gem "active_url", :source => "http://gemcutter.org"
config.gem "subdomain_routes", :source => "http://gemcutter.org"
config.gem "paged_scopes", :source => "http://gemcutter.org"