I was getting an error on ruby 1.9.2 following the readme:
require/Users/dusty/testodm/tmp/ruby/1.9.1/bundler/gems/mongo_odm-282646337ed7/lib/mongo_odm/config.rb:24:in from_hash': undefined methodsymbolize_keys!' for {:host=>"localhost", :port=>27017, :database=>"odm"}:Hash (NoMethodError)
Requiring 'active_support/core_ext/hash' fixed that error.
Also, was getting a warning from mongo
Warning: the order of parameters to initialize a collection have changed. Please specify the collection name first, followed by the db.
Re-ordered the Mongo::Collection.new calls to match the newest.
This fix actually broke more than it fixed. Sorry about the premature submit. Going to check out codemonkeys branch, as it looks like he fixed this problem I was having.
I was getting an error on ruby 1.9.2 following the readme:
require/Users/dusty/testodm/tmp/ruby/1.9.1/bundler/gems/mongo_odm-282646337ed7/lib/mongo_odm/config.rb:24:in
from_hash': undefined method
symbolize_keys!' for {:host=>"localhost", :port=>27017, :database=>"odm"}:Hash (NoMethodError)Requiring 'active_support/core_ext/hash' fixed that error.
Also, was getting a warning from mongo Warning: the order of parameters to initialize a collection have changed. Please specify the collection name first, followed by the db.
Re-ordered the Mongo::Collection.new calls to match the newest.