How would go about writing proper unit testing (and integration testing for that matter) using MongoDB through Mongoid on Rails ?
Is there a geocoding gem similar to acts_as_geocodable for Mongoid? So far as I can tell all geocoding ge开发者_开发百科ms seem to be built for ActiveRecord. Geocoder seems to work with mongoid http:/
are there any date validation helper for mongoid or active model? I want to check dates on valid ISO_8601 standard (http://en.wikipedia.org/wiki/ISO_8601#D开发者_开发百科ates) which is not a big deal
I am using Rails and mongoid to work with mongodb. Usually in rails when working with Active:Record, you have access to the method .toggle! which simply allows you to invert the value of a boolean fi
I\'ve been trying to figure out why Mongoid thinks 387 is smaller than 67. I have two records and the row with 67 is appearing above the row with 387 every time. My query is simple
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
I\'m using mongoid-tree but this question probably applies to other acts_as_tree ports for Mongoid. I want a tree of nodes and I want the whole tree to be embedded in another document. My problem is
I\'m wondering how I can use callbacks to assign values to the database fields, which are processed out of a virt开发者_高级运维ual attribute field.Example:
I have a users collection. Each user has an array of embedded documents: support requests. class User < MyModel
MongoDB seems like it is using an inefficient query pattern when one index is a subset of another index.