-
Notifications
You must be signed in to change notification settings - Fork 276
Neo4j::Rails Scaffolds & Generators
Andreas Ronge edited this page Sep 26, 2012
·
9 revisions
Make sure you are running JRuby (rvm install jruby).
Creating an Neo4j application from scratch:
gem install rails rails new myapp -m http://andreasronge.github.com/neo4j/rails.rb -O rails generate scaffold User name:string email:string rails s
open a webbrowser: http://localhost:3000/users
The database will be stored in the db/neo4j-development
folder.
To start with a fresh new database, simply delete that folder.
The -O flag means: skip Active Record.
See kvitter
For available commands for neo4j models:
rails generate model --help
Example: rails generate scaffold Post title:string --timestamps
Notice There are no configuration needed to create new model objects. The neo4j generate scaffold command only creates source code in the app/model
folder.
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