I have a model Tracker that references_many Users. Everything works fine, but for some business reasons, sometimes my
I\'m trying to figure out what the performance is with Mongoid when doing queries on embedded documents. I\'m quite new to Mongoid and MongoDB, so if you spot anything that you think is bad practice,
It seems there are two gems that provide RSpec matchers to use with Mongoid. Which is a better choice and why?
I am using Rails 3 with Mongoid. I have two documents: class MyUser include Mongoid::Document field ......
I want to run this query using Mongoid: db.users.find().sort({\'users.roles.name\':1}) What will that look like in Mongoid? Or maybe there is an easy way to have Mongoid just execute that c开发者_J
Assuming I want to g开发者_Go百科et 3 documents which fit one of these attributes Class Question:
I am using Rails 3 and Mongoid gem. But I need to fill a combo开发者_如何学Pythonbox with the list of mongodb databases. In mongodb shell we can list databases with \"show dbs\" command. Also there is
Could somebody give me the working example of nested form using mongoid? My models: class Employee include Mongoid::Document
Is it possible to relate a single object as multiple fields? Something like this? Ad Model class Ad include Mongoid::Document
I use Mongoid and Fabrication gems. I have switched to Mongoid.rc7 from beta20 and now I can\'t fabricate document with embedded document: