In my development environment, which is windows 7, Ruby1.9.2p180, everything works fine. However, in production environment, which is Ubuntu 10.04, Ree 1.8.7 using rvm, following error gets produced.
In order to remain DRY, I have a class ModelBase that includes Mongoid document as follows: class ModelBase
I am using the following code below, but I would prefer not to ha开发者_开发技巧ve to delete/copy.I used to be able to change the parent ID, but that doesn\'t exist for embedded documents in Mongoid/M
I have a document in MongoDB that looks like this: { users: [\"2\", \"3\", \"4\"] } I\'m try to query this document by matching the users array.
I can read my database using Mongoid, but cannot write to it. This example below successfully outputs the activity\'s device type, but it crashes on the save method with this error message: \"undefin
I have been having this issue for days and couldn\'t find any solution for this. It seems that I can\'t change the format of Date (& DateTime) of a field in a Mongoid Document
i use mongoid in rails3 app. I have two documents: companies, company_addresses. Company embeds_many company_addresses.
We have a rails 3, mong开发者_开发百科odb app using rspec, very normal setup I think in spec_helper:
In my application I have Link model like this: class Link开发者_C百科 include Mongoid::Document field :url, :type => String
Rails\' ActiveRecord has a feature called Query Caching (ActiveRecord::QueryCache) which saves the result of SQL query for the life-spa开发者_如何学运维n of a request. While I\'m not very familiar wit