在neo4j核心宝石中Neo4j :: Session在哪里?

时间:2013-11-29 21:36:16

标签: ruby neo4j jruby require

我在这里查看文档: https://github.com/andreasronge/neo4j-core

我想将会话功能用作:

session = Neo4j::Session.open(:server_db, "http://localhost:7474")

我按照gem list在jruby-1.7.4

上安装了以下宝石
neo4j-community (1.9.M05 java)
neo4j-core (2.3.0 java)
neo4j-cypher (1.0.2)

我不能使用Neo4j :: Session,因为我总是收到错误:

NameError:
       uninitialized constant Neo4j::Session

打开irb会话并要求neo4j-core并进行检查向我展示:

enter image description here

无法找到会话模块。我在哪里错过了?

1 个答案:

答案 0 :(得分:3)

您阅读了v3.0的文档,但使用的是stable gem v2.3.0