What is the best pagination option from Ruby on Rails when using Neo4j? I am looking to paginate with Kaminari, will_paginate gem or even Bootstrap. Any recommendation?
Asked
Active
Viewed 263 times
2 Answers
5
I've used kaminari with the kaminari-neo4j
gem and had luck with it.
Chris added support for will_paginate a while ago, but I'm not sure if it still works:
https://github.com/neo4jrb/neo4j-will_paginate_redux
I'll send him a link to this question and see if he has a suggestion

Brian Underwood
- 10,746
- 1
- 22
- 34
-
Many thanks for the hints. I will start with kaminari since our apps already use this. If this is not going to work properly I will switch to will_paginate. – LDB Aug 05 '15 at 19:03
4
You can use https://github.com/neo4jrb/neo4j-will_paginate_redux, I find it works well. Neo4j.rb has a basic pagination class built in, too, so it might be enough to use that if you need something simple without the view helpers. If you want Kaminari, there's https://github.com/megorei/kaminari-neo4j, built by a frequent contributor to Neo4j.rb. I haven't used it but his work is always very good.

subvertallchris
- 5,282
- 2
- 25
- 43