Document updates using mongo-ruby-driver?
given your example output, if you want to use the rewriting method it would be like this:
coll.update({"_id" => x["_id"]}, x)
or if you want to atomically change a value, it would be like this:
coll.update({"_id" => x["_id"]}, {"$set" => {"welcome" => "Hello There"}})