mongoid/mongoid — Issue #1395: bson-1.3.1/lib/bson/bson_c.rb:24:in `serialize': wrong number of arguments(3 for 4) (ArgumentError) 
Author: seivan
Created: 2011-11-01 15:58:06+00:00
State: open

Using gem "mongoid", "~> 2.3"
gem "bson_ext", "~> 1.4"

Rails 3.1.1

I get that error when trying to run the console or server.

from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/bson-1.3.1/lib/bson/bson_c.rb:24:in `serialize'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mongo-1.3.1/lib/mongo/cursor.rb:425:in `construct_query_message'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mongo-1.3.1/lib/mongo/cursor.rb:405:in `send_initial_query'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mongo-1.3.1/lib/mongo/cursor.rb:371:in `refresh'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mongo-1.3.1/lib/mongo/cursor.rb:87:in `next_document'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mongo-1.3.1/lib/mongo/db.rb:497:in `command'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mongo-1.3.1/lib/mongo/connection.rb:704:in `check_is_master'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mongo-1.3.1/lib/mongo/connection.rb:504:in `connect'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mongo-1.3.1/lib/mongo/connection.rb:656:in `setup'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mongo-1.3.1/lib/mongo/connection.rb:101:in `initialize'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mongo-1.3.1/lib/mongo/connection.rb:152:in `new'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mongo-1.3.1/lib/mongo/connection.rb:152:in `from_uri'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mongoid-2.3.3/lib/mongoid/config/database.rb:89:in `master'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mongoid-2.3.3/lib/mongoid/config/database.rb:22:in `configure'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mongoid-2.3.3/lib/mongoid/config.rb:318:in `configure_databases'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mongoid-2.3.3/lib/mongoid/config.rb:119:in `from_hash'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mongoid-2.3.3/lib/mongoid/config.rb:136:in `load!'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mongoid-2.3.3/lib/mongoid.rb:147:in `load!'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/mongoid-2.3.3/lib/mongoid/railtie.rb:65:in `block in '
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:30:in `run'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:54:in `each'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/application.rb:96:in `initialize!'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/seivan/Documents/Projects/PinkDurian/config/environment.rb:5:in `'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `block in require'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `load_dependency'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/application.rb:83:in `require_environment!'
from /Users/seivan/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/railties-3.1.1/lib/rails/commands.rb:39:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'