Running into weird errors with Rjb when ran from script/server (using stanfordparser, if that makes a difference):
Test code:
Rjb::load("/usr/local/stanford-parser/current/stanford-parser.jar")
In controller:
def test
Rjb::load("/usr/local/stanford-parser/current/stanford-parser.jar")
render :text => "OK"
end
When ran from script/console, I get back a nil which is expected. However, when ran from an action in script/server, it throws
TypeError (wrong argument type String (expected Array))
This is really two questions. My understanding is script/console should be identical to script/server. The second is does Rjb have an issue with ruby 1.9.1? When ran from 1.8.7 the action works.