少有关我使用JRuby的问题,回溯比1.9.3少有关,例如: 在JRuby的1.6.8 [1] pry(main)> a = Task.create(title:"Test")
ArgumentError: wrong number of arguments (2 for 0)
from /Users/salta/.rvm/gems/jruby-1.6.8/gems/mongoid-3.0.6
我有以下代码(from a Ruby tutorial): require 'thread'
count1 = count2 = 0
difference = 0
counter = Thread.new do
loop do
count1 += 1
count2 += 1
end
end
spy = Thread.new do
l