Sorry, the script that generate the bug is actually this one (with
object.save two times!)
then your console simply type:
> jruby script/console
>>c= Comment.new
blabla
>>c.save
true
OK
>>c.save #yes, do that again
and boom:
ArgumentError>> : wrong # of arguments(2 for 1)
from
/home/rvalyi/DEV/livetribune/vendor/rails/activerecord/lib/active_record/transactions.rb:126:in
`rollback_active_record_state!'
from
/home/rvalyi/DEV/livetribune/vendor/rails/activerecord/lib/active_record/transactions.rb:105:in
`save_with_transactions'
from (irb):3:in `binding'
from /home/rvalyi/DEV/jruby/lib/ruby/1.8/irb.rb:150:in `eval_input'
from /home/rvalyi/DEV/jruby/lib/ruby/1.8/irb.rb:70:in
`signal_status'
from /home/rvalyi/DEV/jruby/lib/ruby/1.8/irb.rb:147:in `eval_input'
from /home/rvalyi/DEV/jruby/lib/ruby/1.8/irb.rb:70:in
`each_top_level_statement'
from /home/rvalyi/DEV/jruby/lib/ruby/1.8/irb.rb:146:in `loop'
from /home/rvalyi/DEV/jruby/lib/ruby/1.8/irb.rb:146:in `catch'
from /home/rvalyi/DEV/jruby/lib/ruby/1.8/irb.rb:146:in `eval_input'
from /home/rvalyi/DEV/jruby/lib/ruby/1.8/irb.rb:70:in `start'
from :1:in `catch'
from /home/rvalyi/DEV/jruby/lib/ruby/1.8/irb.rb:69:in `start'
from :1
Sorry for the inconvenience. Could anyone confirm the bug?
Raphaël
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel