title: Neo4j.rb 2.0 and devise 2.0. Is there any way?
body: <p>I want to use Neo4j database and JRuby on Rails to build a new web project. (I really need Neo4j or other graph database for this)</p>
  
  <p>I am using neo4j 2.0 gem and trying to make authentication with Devise and Omniauth. Is there any way this combination will work?</p>
  
  <p>I tried devise-neo4j but it is not compatible with neo4j.rb 2.0. I know that the last commit <a href="https://github.com/andreasronge/devise-neo4j" rel="nofollow">here</a> says it is for neo4j.rb 2.0 but</p>
  
  <pre><code>gem 'neo4j'
  gem 'devise-neo4j'
  </code></pre>
  
  <p>gives the following error when bundling:</p>
  
  <pre><code>  Bundler could not find compatible versions for gem "neo4j":
    In Gemfile:
      devise-neo4j (&gt;= 1.0.2) java depends on
        neo4j (~&gt; 1.1.1) java
  
      neo4j (2.0.0.rc2)
  </code></pre>
  
  <p>I also tried the normal devise gem with neo4j:</p>
  
  <pre><code>gem 'neo4j'
  gem 'devise'
  </code></pre>
  
  <p>but when I run <code>rails g devise:install</code> I get <code>NameError: uninitialized constant User</code>.</p>
  
  <p>I searched and tried this a lot but couldn't get it working.</p>
  
  <p>Does anyone know a good solution to this?
  Or what is the <em>right</em> way to get this functionality (login with email/password and facebook,google,yahoo and twitter)? <em>Oh, I know I can code it myself, but I would really like to use something already done.</em></p>