Permalink
Browse files

Updating README

  • Loading branch information...
1 parent 1d490fd commit 883b9042e254225ff6c3acf45325e03f25b611cb Lucas Souza committed Oct 20, 2011
Showing with 29 additions and 0 deletions.
  1. 0 README
  2. +29 −0 README.mv
View
No changes.
View
@@ -0,0 +1,29 @@
+Will Paginate Mongoid
+========
+
+A simple gem that allows you use pagination using Mongoid
+---------------------------------------------------------------------
+
+### Why use this gem?
+
+Because will_paginate does not support mongoid `skip` and `limit` methods.
+They just supports `paginate` method in `Array` class. So what it means?
+Will_Paginate, find for all objects and after that cut just the necessary objects.
+It can cause performance problems when you have a lot of objects.
+
+### How I install it?
+
+In your `Gemfile` use `gem "will_paginate_mongoid"` and run `bundle install`
+
+or
+
+Just run `gem install will_paginate_mongoid`
+
+### How it works?
+
+It just create a `paginate` method compatible with will_paginate interface
+and add two additional criterias: `skip` and `limit`
+
+### Just that?
+
+Yes. Now you can use `paginate` method like in [will_paginate documentation](https://github.com/mislav/will_paginate/wiki)

0 comments on commit 883b904

Please sign in to comment.