Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6975537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:22:52+00:00 2026-05-27T17:22:52+00:00

I am trying use neo4j with Ruby on rails on Mac OSX. I have

  • 0

I am trying use neo4j with Ruby on rails on Mac OSX.
I have installed jruby and neo4j with brew.
I followed this guide:
http://wiki.neo4j.org/content/Getting_Started_With_Ruby
and this:
https://github.com/andreasronge/neo4j
Firstly, my server Neo4j started and I was able to create a node and a relation.

I have created a new gemset with RVM (ree install jruby@neo4j).
Secondly, the test’s first guide was successful.

So, I have created a new project with command’s second guide.
The project was created and the bundle was successful.
But when I went to start the server (rails s) it gave me:

NameError: uninitialized constant Neo4j::Rails::Application
  const_missing at org/jruby/RubyModule.java:2590
          Neo4j at /Users/guillaumelegendre/dev/boosket/neo4j/config/application.rb:19
         (root) at /Users/guillaumelegendre/dev/boosket/neo4j/config/application.rb:18
        require at org/jruby/RubyKernel.java:1038
         (root) at /Users/guillaumelegendre/dev/boosket/neo4j/config/application.rb:52
            tap at org/jruby/RubyKernel.java:1804
         (root) at /Users/guillaumelegendre/.rvm/gems/jruby-1.6.3@neo4j/gems/railties-3.1.3/lib/rails/commands.rb:49
        require at org/jruby/RubyKernel.java:1038
         (root) at script/rails:6

I searched on Google, but I did’t find anybody with the same error.

And this was my application.rb but this is the application.rb belonging to the second script’s guide:

require File.expand_path('../boot', __FILE__)

require 'action_controller/railtie'
require 'action_mailer/railtie'
require 'active_resource/railtie'
require 'rails/test_unit/railtie'
require 'will_paginate/railtie'
require 'neo4j'


if defined?(Bundler)
  # If you precompile assets before deploying to production, use this line
  Bundler.require(*Rails.groups(:assets => %w(development test)))
  # If you want your assets lazily compiled in production, use this line
  # Bundler.require(:default, :assets, Rails.env)
end

module Neo4j
  class Application < Rails::Application
    # Settings in config/environments/* take precedence over those specified here.
    # Application configuration should go into files in config/initializers
    # -- all .rb files in that directory are automatically loaded.

    # Custom directories with classes and modules you want to be autoloadable.
    # config.autoload_paths += %W(#{config.root}/extras)

    # Only load the plugins named here, in the order given (default is alphabetical).
    # :all can be used as a placeholder for all plugins not explicitly named.
    # config.plugins = [ :exception_notification, :ssl_requirement, :all ]

    # Activate observers that should always be running.
    # config.active_record.observers = :cacher, :garbage_collector, :forum_observer

    # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
    # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
    # config.time_zone = 'Central Time (US & Canada)'

    # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
    # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
    # config.i18n.default_locale = :de

    # Configure the default encoding used in templates for Ruby 1.9.
    config.encoding = "utf-8"

    # Configure sensitive parameters which will be filtered from the log file.
    config.filter_parameters += [:password]

    # Enable Neo4j generators, e.g:  rails generate model Admin --parent User
    config.generators do |g|
      g.orm             :neo4j
      g.test_framework  :rspec, :fixture => false
    end

    # Configure where the neo4j database should exist
    config.neo4j.storage_path = "#{config.root}/db/neo4j-#{Rails.env}"


    # Enable the asset pipeline
    config.assets.enabled = true

    # Version of your assets, change this if you want to expire all your assets
    config.assets.version = '1.0'
  end
end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:22:53+00:00Added an answer on May 27, 2026 at 5:22 pm

    Strange, what version of rails, jruby and neo4j do you use ?
    It should work out of the box:

    gem install rails
    rails new myapp -m http://andreasronge.github.com/rails3.rb
    cd myapp
    bundle
    rails generate scaffold User name:string email:string
    rails s
    open a webbrowser: http://localhost:3000/users
    

    How can I reproduce this problem ?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use Neo4j with JRuby on my system. I followed this
I installed JRuby and the neo4j gem and trying to use a generator to
Trying to use GridBagLayout. I have the method called buildLabel. This creates three label.
I'm trying use mod_rewrite to rewrite URLs from the following: http://www.site.com/one-two-file.php to http://www.site.com/one/two/file.php The
Trying to use this method (gist of which is use self.method_name in the FunnyHelper
Trying to use this code to connect the AD PrincipalContext context = new PrincipalContext(ContextType.Domain,
I have been trying use the edit_post_link() function to contain an image. All of
Trying to use this sql statement. The first 2 parts work fine, I am
I am trying use MySql and Entity Framework, using Connector/Net 6.1 with this as
I am trying to use neo4j database with Express (node.js). I've been looking for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.