Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `neo4j' for #<Rails::Application::Configuration:0x00000271c086cf98 #1700

Open
jacobfranco opened this issue Jun 22, 2023 · 1 comment

Comments

@jacobfranco
Copy link

jacobfranco commented Jun 22, 2023

I am attempting to follow the instructions from documentation here: http://neo4jrb.io/#getting-started

I added these gems and ran bundle install

gem 'activegraph'
gem 'neo4j-ruby-driver'

and in my config/application.rb I have:

config.neo4j.driver.url = ENV['NEO4J_URL'] || 'neo4j://localhost:7687'
    config.neo4j.driver.username = 'neo4j'
    config.neo4j.driver.password = '<my password>'

My error message is:

C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/railties-7.0.5/lib/rails/railtie/configuration.rb:96:in method_missing': undefined method neo4j' for #<Rails::Application::Configuration:0x00000271c086cf98

coming from my config/application.rb, specifically on this line:

config.neo4j.driver.url = ENV['NEO4J_URL'] || 'neo4j://localhost:7687'

I attempted to use the 'neo4j' gem and to add a require 'activegraph/railtie' in my application.rb but that did not solve the problem. I also added my neo4j information in a config/neo4j.yml file, and that did not work either.

When I set up my project, I made it in API only mode and skipped ActiveRecord setup

Runtime information:

neo4j (9.6.2)
neo4j-core (9.0.0)
neo4j-rake_tasks (0.7.19)
neo4j-ruby-driver (4.4.4)
activegraph (11.3.1)

@wmene
Copy link

wmene commented Oct 4, 2023

We're seeing this error occasionally too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants