Andreas Ronge just released Neo4j.rb 0.0.7. See the project page for more information. Highlights from the changelog: added value object stuff to support Rails, made the neo4j engine start and stop automatically.

Neo4j.rb can now be used as a complement or replacement for ActiveRecord in Ruby on Rails. All what is needed is to add the neo4j gem in the rails config/environment.rb file.

Here is an example how to use a Neo4j.rb model in a rails controller:

   def new
# creates a empty value object from the node class:
@movie = Movie.value_object.new
end

def create
@movie = Movie.new
# update the new movie node
# by using the request parameters
@movie.update(params[:id])
end



Want to learn more about graph databases? Click below to get your free copy of O’Reilly’s Graph Databases ebook and discover how to use graph technologies for your application today.

Download My Ebook

 


Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe

Upcoming Event

 

From the CEO

Emil's Blog


Have a Graph Question?

Stackoverflow
Slack
Contact Us

Share your Graph Story?

Email us: content@neotechnology.com


Popular Graph Topics