I ran this example from git: https://github.com/andreasronge/neo4j
require "rubygems"
require 'neo4j'
Neo4j::Transaction.run do
node = Neo4j::Node.new(:name => 'andreas')
node.outgoing(:friends) << Neo4j::Node.new(:name => 'peter')
node.outgoing(:friends).each {|node| puts "name #{node[:name]}"}
end
and it outputted the error:
NameError: uninitialized constant Neo4j
const_missing at org/jruby/RubyModule.java:2626
(root) at ./neo4j.rb:4
require at org/jruby/RubyKernel.java:1027
require at ./neo4j.rb:36
(root) at /Users/ZATLUKE/RubymineProjects/nokogiri/neo4j.rb:2
load at org/jruby/RubyKernel.java:1052
(root) at -e:1
Any ideas?