Questions tagged [neo4j.rb]

Neo4j.rb is an Active Model compliant Ruby/JRuby wrapper for the Neo4j graph database. It uses the neo4j-core and active_attr gems.

Neo4j.rb is an Active Model compliant Ruby/JRuby wrapper for the Neo4j graph database.

https://github.com/neo4jrb/neo4j

175 questions
0
votes
1 answer

Neo4j gem - dependent: :destroy not destroying

Problem: dependent destroy ain't happening with this setup! Help me spot the problem! The event has questions, and each question can have many answers event.rb include Neo4j::ActiveNode has_many :both, :users, model_class: 'User', rel_class:…
Clam
  • 935
  • 1
  • 12
  • 24
0
votes
2 answers

Issue with the origin of a relationship

I got two types of relationships between two classes. In one of them, I need to establish the origin, however I don't know how. Anyone idea? class A include Neo4j::ActiveNode ... has_many :out, :method1, model_class: B has_many :out,…
tehAnswer
  • 960
  • 1
  • 13
  • 28
0
votes
2 answers

Neo4j gem - Effecient ways to destroy associated nodes and relationships

I know that the gem doesn't have a built in way to handle dependency destroys yet like active rececord dependant: destroy Is there better ways to deal with chain destroying? For example, right now I am trying to deal with destroying with my Q+A Each…
Clam
  • 935
  • 1
  • 12
  • 24
0
votes
1 answer

API pagination with Rails and Neo4j

I'm using Rails and Neo4j.rb to build a REST API and I need to paginate some responses. First of all, I tried with neo4j-will_paginate gem but I got the following error when I executed bundle install: Bundler could not find compatible versions for…
tehAnswer
  • 960
  • 1
  • 13
  • 28
0
votes
0 answers

Facebook Omniauth: This authorization code has expired

I first got this error on a callback for my facebook login in rails. I can't remember the rest of it but after that, I can't reproduce it. I am now getting an error when I do the same login attempt if user =…
Clam
  • 935
  • 1
  • 12
  • 24
0
votes
1 answer

how to remove prefix path in routes.rb

I'm trying create a application with both active and neo4j models, and I want to use the following for my neo4j models: module Neo class Usernode include Neo4j::ActiveNode property :first_name, type: String property :last_name, type:…
0
votes
2 answers

Using neo4j with ruby

(PLEASE , THIS QUESTION IS ABOUT NEO4J FOR RUBY AND NOT FOR RUBY ON RAILS) I would like to develop a small database driven application using ruby and neo4j ,my question is about the deployment part , so , persons who will use the app will have to…
0
votes
1 answer

undefined method `logger=' for Neo4j::ActiveNode:Module (NoMethodError)

I am trying to use log4r with rails 4 and neo4j. I have log4r with Active record and it works fine but I am unable to get it working with neo4j. Main problem which I think is the logger method which is not available for neo4j. I am using gem…
vishB
  • 1,688
  • 2
  • 17
  • 23
-1
votes
3 answers

Why does my recursive function not work?

I have a rails model (Comment) which is based on neo4j.rb. My simple method should return the number of children, but is instead returning a LocalJumpError (no block given (yield)). What am I doing wrong? has_many :both, :children, model_class:…
Joe Eifert
  • 1,306
  • 14
  • 29
-2
votes
1 answer

Importing data into Neo4j

http://files.pushshift.io/reddit/requests/Reddit_Election_Raw_Data.zip Can you please suggest me how I can Import the files in this zip folder into Neo4j?
Neo4j user
  • 15
  • 3
1 2 3
11
12