jgp / will_paginate_acts_as_solr

A simple plugin matching up will_paginate and acts_as_solr

This URL has Read+Write access

name age message
file MIT-LICENSE Loading commit data...
file README
file Rakefile
file init.rb
directory lib/
directory spec/
README
WillPaginateActsAsSolr
======================

A simple plugin for ActsAsSolr and WillPaginate.

Just add the plugin;
  ruby script/plugin install git://github.com/jgp/will_paginate_acts_as_solr

And we're done.

Example
=======

  Model.paginate_by_solr("some solr query", :page => 2, :per_page => 23)

gets us a will_paginate collection like we want

  collection.total_entries == 33290
  collection.current_page  == 2
  collection.next_page     == 3
  ...  

Copyright (c) 2008 [JGP], released under the MIT license