mongoid
Two "id" fields in one MongoDB collection with Rails 3?
I\'ve got a Rails 3.0.9 project using the latest version of MongoDB and Mongoid 2.2. I imported a CSV with an \"id\" field into a MongoDB collection named College, resulting in a collection like so:[详细]
2023-04-12 03:50 分类:问答Undefined method `reflect_on_association` using Mongoid, Rspec
I\'m learning me some Rails! But right now, I can\'t seem to get past an error RSpec is throwing. The error is as follows:[详细]
2023-04-12 03:47 分类:问答Is the order of embedded objects maintained in MongoDB?
Title basically describes the question.I\'m assuming if it comes out as an array it will be maintained, but if 开发者_如何学编程a hash it will not.I\'m just not sure which is it using.[详细]
2023-04-11 13:10 分类:问答To have efficient sorting in mongo is it necessary to change the _id field?
I have a document with only about 200 elements in it.But I am still getting a very slow response just by querying it like:[详细]
2023-04-11 09:25 分类:问答Increase MongoDB maximum number of connections
I am getting some errors on MongoDB side, the error is complaining that it reached the max allowed connections.[详细]
2023-04-11 08:12 分类:问答padrino-gen migration create_indexes is not working
I am trying to use mongoid_fulltext and can\'t seem to get the migrations to create the indexes needed.When I try:[详细]
2023-04-11 00:31 分类:问答Using Mongoid tree for many to many relationships in rails?
I just wanted to seek some advice on database desig开发者_如何学Pythonn with mongoid and rails.[详细]
2023-04-10 21:09 分类:问答Why isnt' this multiple field key working in Mongoid?
I\'ve added this to my model: key :name, :random_number And I am using this callback: before_create :create_random_number[详细]
2023-04-10 18:50 分类:问答Custom current_user devise + Mongoid
I have devise + a scaffold \"house\" created, and I want that a user only can edite your own house. This is my houses_controller:[详细]
2023-04-10 14:18 分类:问答How do I delete an embedded doc from Mongoid?
I\'m having some issues deleting my document using Mongoid... The code actually does delete the gallery, but I get a browser error which looks like:[详细]
2023-04-10 12:13 分类:问答