Permalink
Browse files

Added readme

  • Loading branch information...
1 parent 2e7c148 commit d24c8ecda70afbd072230404e309ed912dbddc84 @dnagir committed Jan 17, 2012
Showing with 36 additions and 0 deletions.
  1. +36 −0 README.md
View
@@ -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

0 comments on commit d24c8ec

Please sign in to comment.