-
Notifications
You must be signed in to change notification settings - Fork 276
Neo4j::Rails Introduction
Fatih Kadir Akın edited this page Jan 26, 2017
·
9 revisions
The neo4j gem contains two Rails Active Model compliant classes:
They also implement a small subset of the Active Record API.
The neo4j gem uses the neo4j-core
, neo4j-wrapper
and the neo4j-cypher
gems.
- Persistence and Callbacks
- Find using a Lucene index
- Relationships
- Third Party Gems
- Scaffolding & Generators
Example of creating a Neo4j Application from scratch: (make sure you have installed JRuby version >= 1.6.2)
gem install rails
rails new myapp -m http://neo4jrb.github.com/neo4j/rails.rb -O
cd myapp
bundle
rails generate scaffold User name:string email:string
rails s
open a webbrowser: http://localhost:3000/users
The -O flag above means that it will skip active record.
See Neo4j::Rails-Config for how to use rails console with write support.
WARNING: Much of the information in this wiki is out of date. We are in the process of moving things to readthedocs
- Project Introduction
- Neo4j::ActiveNode
- Neo4j::ActiveRel
- Search and Scope
- Validation, Uniqueness, and Case Sensitivity
- Indexing VS Legacy Indexing
- Optimized Methods
- Inheritance
- Core: Nodes & Rels
- Introduction
- Persistence
- Find : Lucene
- Relationships
- Third Party Gems & extensions
- Scaffolding & Generators
- HA Cluster