The problem deals with mongoid / moped DATE type insertion. My code is below
s=Moped::Session::new(["127.0.0.1"])
s.use "test"
s["a"].insert mydate: Date.strptime("10/02/2014","%m/%d/%Y")
raises an error
# => undefined method `__bson_dump__' for Thu, 02 Oct 2014:Date
Why does Date type fails to insert into mongoDB via moped? I am pretty sure that mongoDB does support Date type.
Thank you for the help.