There are two classes: class Person include Mongoid::Document field :name embeds_many :addresses end class Address
I am just starting a new Rails 3 project using Mongoid ORM for MongoDB.There is just one thing I can not get my head around, and that is how to effectively have a many-to-many relationship.Now there i
There is a similar question about \'bson_ext\', but it\'s not work for me. MongoMapper and bson_ext problem
I\'m in the process of conver开发者_如何学Pythonting my Rails app to use mongodb through mongoid. I have two questions relating to indexes. I think I know the answer, but I want confirmation from some
I\'m at my 开发者_JS百科wit\'s end trying to handle these errors.Basically, I\'ve created the following User and Relationship patterns, using Mongoid to handle my database.This seems like a near-carbo
I\'m using Rails 3 w/ Mongoid, (so no ActiveRecord). Mongoid uses ActiveModel\'s \"to_json\" method, and by default that method includes the root object in the JSON (which I don\'t want).
We are just giving MongoDB a test run and have set up a Rails 3 app with Mongoid. What are the best practices for inserti开发者_如何学运维ng large datasets into MongoDB? To flesh out a scenario: Say,
I\'m learning MongoDB through the Mongoid Ruby gem with Rails (Rails 3 beta 3), and I\'m trying to come up with a way to create dynamic attributes on a model based on fields from another model, which
I have a 开发者_如何学Gocollection with an index on :created_at (which in this particular case should be a date)
cat hosts.txt | while read h; do telnet $h; done When I run this, it telnets to first host which denies the connection but then exits instead of looping over the other hosts in the file.