Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added readme

  • Loading branch information...
commit d24c8ecda70afbd072230404e309ed912dbddc84 1 parent 2e7c148
@dnagir authored
Showing with 36 additions and 0 deletions.
  1. +36 −0 README.md
View
36 README.md
@@ -0,0 +1,36 @@
+Integration for Neo4j.rb and will_paginate
+============================================
+
+Installation
+==================
+
+1. Add `neo4j-will_paginate` to your `Gemfile`.
+2. `require 'neo4j-will_paginate` somewhere from your code.
+
+
+
+Using
+==================
+
+Please see the [will_paginate](https://github.com/mislav/will_paginate)
+and [neo4j.rb](https://github.com/andreasronge/neo4j) for details.
+
+But here is simple example:
+
+
+```ruby
+# Probably in the Rails controller:
+
+def index
+ @people = Person.all.paginate(:page => 2, :per_page => 20) # :per_page is optional
+end
+
+# Then in the view:
+paginate @people
+
+```
+
+License
+=====================
+
+MIT by Dmytrii Nagirniak and Andreas Ronge
Please sign in to comment.
Something went wrong with that request. Please try again.