I manually inserted "gem 'neo4j', '3.0.0.rc.3'" into my gemfile and ran the bundle command.
I manually inserted "require 'neo4j/tasks/neo4j_server'" into the RakeFile, that is already made when I created the application:
require
File
.
expand_path
(
'../config/application'
,
__FILE__
)
require
'neo4j/tasks/neo4j_server'
Rails
.
application
.
load_tasks
Manually added into the application.rb the following lines in bold:
require
'neo4j/railtie'
module
GraphNeo4j
class
Application
<
Rails
::
Application
config
.
generators
do
|
g
|
g.
orm
:
neo4j
end
config
.
neo4j
.
session_type
=
:
server_db
config.
neo4j
.
session_path
=
'http://localhost:7474'
end
end
I used
'rake
neo4j:install[enterprise-2.1.5]' and it worked fine by
installing the neo4j directory.
Created a new comment class. Started up the application
I started the neo4j server. Created a new Commend and saw it
in the web server browser. It seems to work.
--
You received this message because you are subscribed to the Google Groups "neo4jrb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4jrb+u...@googlegroups.com.
To post to this group, send email to neo...@googlegroups.com.
Visit this group at http://groups.google.com/group/neo4jrb.
For more options, visit https://groups.google.com/d/optout.
rails g scaffold comment body
invoke neo4j
create app/models/comment.rb
invoke rspec
create spec/models/comment_spec.rb
invoke resource_route
route resources :comments
invoke scaffold_controller
create app/controllers/comments_controller.rb
invoke erb
If I remove ".rc.3" I get an error.
--