Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 39 lines (24 sloc) 0.884 kb
d24c8ecd »
2012-01-17 Added readme
1 Integration for Neo4j.rb and will_paginate
2 ============================================
3
b22a66e0 »
2012-01-17 add travisci status
4 This gem is just a simple integration of will_paginate and neo4j.
5 [![Build Status](https://secure.travis-ci.org/neo4j-will_paginate/its.png)](http://travis-ci.org/dnagir/neo4j-will_paginate)
6
d24c8ecd »
2012-01-17 Added readme
7 Installation
8 ==================
9
10 1. Add `neo4j-will_paginate` to your `Gemfile`.
b51e426f »
2012-01-29 Fix minor spelling to fix #2
11 2. `require 'neo4j-will_paginate'` somewhere from your code.
d24c8ecd »
2012-01-17 Added readme
12
13
14
15 Using
16 ==================
17
18 Please see the [will_paginate](https://github.com/mislav/will_paginate)
19 and [neo4j.rb](https://github.com/andreasronge/neo4j) for details.
20
21 But here is simple example:
22
23
24 ```ruby
25 # Probably in the Rails controller:
26
27 def index
28 @people = Person.all.paginate(:page => 2, :per_page => 20) # :per_page is optional
29 end
30
31 # Then in the view:
32 paginate @people
33
34 ```
35
36 License
37 =====================
38
39 MIT by Dmytrii Nagirniak and Andreas Ronge
Something went wrong with that request. Please try again.