I\'m having this model: class Vote include Mongoid::Document include Mongoid::Timestamps field 开发者_Go百科:vote, :type=>Integer
I am using MongoHub GUI for MongoDB: http://mongohub.todayclose.com/ I would like to be able to query by ObjectId as thi开发者_高级运维s is what MongoHub is returing for _id. How to do this, somethin
Mongoid has built-in versioning when you mix-in the Mongoid::Versioning module.It works really well for me but I\'m inelegantly working with versions on a model.Let me give you an example.Assume I\'m
I am getting this weird error while running cucumber test: ERROR Mongo::OperationFailure: Database command \'filemd5\' failed: {\"errmsg\"=>\"exception: best guess plan requested, but scan and ord
I am dealing with Mongoid, carrierwave and gridFS to store my uploads. For example, I have a model Article, containing a file upload(a picture).
I have integrated Devise and OmniAuth with my Mongoid ORM setup using the following examples: https://github.com/plataformatec/devise/wiki/Example-Applications
Our application uses ajax very heavily and as a res开发者_开发技巧ult of this we have statements like var items = #{@items.to_json} in all our views. Now @items is being set in the controller as @item
I am developing a Ruby on Rails 3 application and this is the first time I use MongoDB. I have been thinking for couple of days on this problem, and I don\'t find a good solution. There are two probl
I have a model Item with an indexed field named _key, that 开发者_运维问答is array of strings (keywords for search).
I am using mongoid as my database. And my model is like this class Address include Mongoid::Document embedded_in :person, :inverse_of => :addresses