Skip to content

Neo4j::Rails Introduction

Andreas Ronge edited this page Sep 27, 2012 · 9 revisions

The neo4j gem contains two Rails Active Model complient classes: Neo4j::Rails::Model and Neo4j::Rails::Relationship. They also implements a small subset of the Active Record API. The neo4j gem uses the neo4j-core, neo4j-wrapper and the neo4j-cypher gems.

Links

Content

==== Generate a Rails Application

Example of creating an Neo4j Application from scratch: (make sure you have installed JRuby version >= 1.6.2)

gem install rails rails new myapp -m http://andreasronge.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.

Clone this wiki locally