I\'m migrating an existing Rails app to use MongoDB (with Mongoid), and I\'m having some trouble figuring out how to do aggregations like you can do with MySQL.
I am importing data from a MySQL table into MongoDB using Mongoid for my ORM.I am getting an error when trying to save an email address as a string.The error is:
in ActiveRecord, I\'m used to do this: ActiveRecord::Base.send :include, MyGem::ActsAsMagnific::Base And it works like a charm.
When I assign an Array or Hash to an attribute of a Mongo document, it gets properly serialized except for Symbols when they are used as Hash keys. Simple example:
I am using carrierwave and mongoid on a rails 3 application and am having an issue with an after_save callback.Consider the following
Suppose I have base model class Item class Item include Mongoid::Document field :category end Each category determines which fields should item contain. For example, items in \"category1\" should c
I\'m trying to figure out how to model a Device/Service relationship. I\'m using Rails 3 and MongoDB/Mongoid.
I\'ve got one project in development. I use mysql and ActiveRecord. It looks like this project is good one to start using MongoDB (which I\'ve never used) with Mongoid adapter.
I\'m trying to chain criteria based on optional rails parameters. I want to be able to simultaneously filter based on selected tags as
brand new to MongoDB / mongoid and still pretty green on ruby / rails on the rails console: t = Task.all(:conditions=> {:title => \"task2\"})