LocalJumpError (no block given), jRuby, rails

I get this error "LocalJumpError (no block given)" any time when I paste this row of code to my index function in rails controller:

result = Neo4j.query("START n=node(0) RETURN n")

So the function looks like (function has no objective, it's only for testing purposes of Neo4j.query)

def index
  @posts = Post.all

  result = Neo4j.query("START n=node(0) RETURN n")

  respond_to do |format|
    format.html # index.html.erb
    format.json { render json @posts }

Neo4j.query should return just "enumerable of hash values" as stands in its documentation (Neo4j.query documentation)

The error LocalJumpError (no block given) occurs with jruby v. 1.7, with jruby v. 1.6.2 error changes to ArgumentError (block not supplied)


I have found myself using an old documentation for neo4j.rb by mistake. Documentation for v. 2 is at https://github.com/andreasronge/neo4j/wiki

Need Your Help

Receive Push Notification with Node.js webToolkit

node.js push-notification node-webkit

I'm developing a desktop application using Node-Webkit.

Win32 ASM stack override

windows winapi assembly stack nasm

I'm having trouble with the call to BeginPaint(hWnd, lpPaint) in the WindowPaint event. It seems that the function BeginPaint overwrite the stack.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.