Top "Mongoid" questions

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

Difference between embeds_many and has_many in mongoid

Can anyone explain to me the difference between embeds_many and has_many in mongoid?

ruby-on-rails ruby mongodb mongoid
How can I see raw mongoDB queries with Mongoid

I followed this page to see mongoDB queries. As a result I could see Moped log. But I can't see …

ruby-on-rails mongoid mongodb-query
Mongoid Scope Check If Array Field Contains Value

The solution for this question might look pretty simple, but I've been waving around with no answer. I'm using Mongoid …

ruby-on-rails arrays mongodb mongoid
How to get print output for debugging map/reduce in Mongoid?

I'm writing a map/reduce operation with Mongoid 3.0. I'm trying to use the print statement to debug the JS functions. …

mongodb mapreduce mongoid mongoid3
Mongo ids leads to scary URLs

This might sound like a trivial question, but it is rather important for consumer facing apps What is the easiest …

mongodb mongoid
undefined method `new_confirmation_path' Confirmation Module Devise + MongoID

I am trying to work with Rails 3.1 + Devise Module :confirmable + MongoID with this template: https://github.com/RailsApps/rails3-application-templates/…

ruby-on-rails views devise mongoid
Getting actual array of results using Mongoid

With a regular ActiveRecord/SQL setup in Rails, in console when I execute commands *.where, *.all etc., I get back …

ruby-on-rails-3 mongoid activemodel
Removing database.yml when using Mongoid in Rails 3.2

I just began a new rails project and wanted to use MongoidDB thru the Mongoid gem. Following the instructions on …

ruby-on-rails ruby-on-rails-3 mongodb mongoid
MongoDB and Mongoid in production

I am deploying my first little app with MongoDB and Mongoid as a driver. What is the right secure way …

ruby-on-rails ruby mongodb mongoid
Mongoid 3 + Heroku (MongoHQ) cause Moped::Errors::OperationFailure

With Rails 3, after upgrading from Mongoid 2.x to Mongoid 3.x, my Heroku + MongoHQ setup stopped working. Funny thing is, that …

ruby-on-rails mongodb heroku mongoid mongohq