Assuming the following:
irb> x
irb> => {"_id"=> 123456, "welcome"=>"Hi!", "welcome2" => "Enjoy your stay!"}
irb> coll.class
irb> => Mongo::Collection
How can I use the raw mongo-ruby-driver to update the document corresponding to x by using both the rewriting method and the atomic update method? (See http://api.mongodb.org/ruby/current/file.TUTORIAL.html#Updating_a_Document)
coll.update({<search criteria>}, {"$set" => {<update>}}, {:multi => true })
Just thought I'd add that since I couldn't find it anywhere. – Divinize