I need to be able to add indexes to my Mongoid database in a Padrino project.I saw that they added rake tasks for this here:
I\'m attempting to get has_secure_password to play nice with mongoid. I\'m following Railscasts #270, however when I to signin with a username/password, I get the error:
If I have a model called Product class Product include Mongoid::Document field :product_id field :brand field :name
I\'m trying to do something straight forward such as: User.all(:criteria => {:project_id 开发者_如何学C=> 2})
I\'m trying the use namespaced models with Mongoid and can\'t seem to get it to work. I have the following models: Achievement, Flag, FlagCaptured
I get the following error: NoMethodError (undefined method `eager_load\' for nil:NilC开发者_开发问答lass)
Is there some callbacks for soft deleting in Mongoid? Because before_destory won\'t be triggered. Now I thought I can use before_update but it looks开发者_开发问答 not so clear solution as I want and
I am in need to integrate comments to my existing mongoid documents. is the开发者_如何学Pythonre any rubygem available to achieve it?usually you\'d useacts_as_commentable
How do I update/change the TimestampSequence on a Mongoid document in rails/ruby? If you dont know in Mongoid but know in MongoDB that开发者_如何学编程 will work as well.
Let’s say you have the following mongoid documents: class User include Mongoid::Document embeds_one :name