README.md in simple_paginate-0.0.1 vs README.md in simple_paginate-0.0.2
- old
+ new
@@ -1,7 +1,9 @@
# simple_paginate
+[![Build Status](https://travis-ci.org/xinminlabs/simple_paginate.png)](https://travis-ci.org/xinminlabs/simple_paginate)
+
Simple pagination solution for previous and next page navigation.
## Why simple_paginate
We saw some websites using `will_paginate` or `kaminari` for pagination, but they just need previous and next page navigation, `will_paginate` or `kaminari` is overqualified.
@@ -37,10 +39,13 @@
### Query Basics
```
## perform a paginate query:
@users = User.paginate(:page => params[:page])
+
+# or, use page and per scope:
+@users = User.page(params[:page]).per(25)
```
### Helpers
```
@@ -72,6 +77,15 @@
SimplePaginate includes a handy template generator, To edit your paginator, run the generator first:
```
% rails g simple_paginate:views
+```
+
+### Contribute
+
+To run the test suite locally:
+
+```
+% bundle install
+% rake spec:active_record_42
```