I\'m writing tests for my controller. They are very simple, but this error has kept popping up. This is my controller
i seem to only be having this issue with 1 particular model when i am searching by ID >> Cart.where(:_id => \'4dae5902e1607c232c000009\').first
I am using mongoid on rails3. I am attempting to perform a very simple migration, but it is not working. When it saves, it keeps saving the original value of a.updated_at, instead of a.created_at. Thi
Is it possible to replicate data from mongoDB to Solr? I\'m using ruby + sinatra + mongoid. Or i n开发者_运维百科eed to make hooks with after_create, after_update and so on through rsolr?10gen introdu
Say I have two seperate models User and Event in a HABTM environment. Now I want to extend this to include information about the relation. Things like if the user is planning on attending the event.
I have a 1..N relationship between two classes class A has_many: bees class B belongs_to: a I can add instances of B to bees collection without problem.
I\'m having this problem, I tried a lot of differents aproachs but everytime it falls in that error.
Using MongoID and Rails 3... If I store the objectID as a reference to an object in my database how do I use it to query the object and return its other prop开发者_运维问答erties?
I have been using Mongoid for about 3 months now, and I have managed to get done pretty much anything I need thanks to the great document and resources out there.
Which is the best way to retrieve a list of mongodb documents using mongoid in the order specified in the list.