Skip to content

jgp/will_paginate_acts_as_solr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple plugin matching up will_paginate and acts_as_solr

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages