Top "Mongoid" questions

Mongoid is the official Ruby Object-Document-Mapper (ODM) for MongoDB.

Mongoid OR query syntax

This must be asked alot but it is very poorly documented. There is no mention at http://mongoid.org/en/…

ruby-on-rails mongoid
Mongoid or MongoMapper?

I have tried MongoMapper and it is feature complete (offering almost all AR functionality) but i was not very happy …

ruby mongodb mongoid mongomapper odm
Is it bad to change _id type in MongoDB to integer?

MongoDB uses ObjectId type for _id. Will it be bad if I make _id an incrementing integer? (With this gem, …

ruby-on-rails mongodb mongoid
Batch insert/update using Mongoid?

I googled and all others, but I didn't find the answer. The question is: Hi, how can I do batch …

mongodb mongoid
How to query MongoDB directly from Ruby instead of using Mongoid?

I am writing a migration for a Rails application that uses MongoDB and Mongoid. My migration currently uses my models …

ruby-on-rails mongodb mongoid
Mongoid / Mongodb and querying embedded documents

I have Author and Book models. An Author has many embedded Books. Can I query the embedded Books, or do …

ruby-on-rails mongodb mongoid
Could not connect to a primary node for replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]>

I'm following though with the RailsApp tutorial with Devise and Mongoid (http://railsapps.github.io/tutorial-rails-mongoid-devise.html) and am encountering …

ruby-on-rails mongodb mongoid homebrew
Aggregate with Mongoid

MongoDB has a new Aggregation Framework and I'm trying to figure out how to use it with Mongoid. It appears …

ruby-on-rails mongodb mongoid aggregation-framework
Collection ID length in MongoDB

i am new to mongodb and stack overflow. I want to know why on mongodb collection ID is of 24 hex …

mongodb mongoid mongodb-.net-driver mongodb-query
How do I validate members of an array field?

I have this model: class Campaign include Mongoid::Document include Mongoid::Timestamps field :name, :type => String field :subdomain, :type =&…

ruby-on-rails ruby ruby-on-rails-3 mongodb mongoid