Mongoid is the official Ruby Object-Document-Mapper (ODM) for MongoDB.
Using rails 3 and mongoDB with the mongoid adapter, how can I batch finds to the mongo DB? I need to …
ruby-on-rails mongodb mongoidI'm learning MongoDB through the Mongoid Ruby gem with Rails (Rails 3 beta 3), and I'm trying to come up with a …
ruby-on-rails mongodb mongoid dynamic-attributesI'm trying to find all documents whose text contains the word test. The below works fine: @tweets = Tweet.any_of({ :…
ruby-on-rails mongodb ruby-on-rails-3.1 mongoidI have this little test script: require 'mongo' mongo_client = Mongo::Client.new(['127.0.0.1:27017'], :database => 'test') mongo_client[:…
ruby mongodb mongoidWhen I run my rspec tests, many fail due to stale data in my mongodb database. AFAIK it is far …
ruby-on-rails-3 rspec mongoidI can't get past this. I know I've read there isn't a page method for arrays but what do I …
ruby-on-rails-3 mongoid kaminariWhy is_a? returns false for a Hash class? Example: value = {"x" => 3, "y" => 2} puts value.class puts value.…
ruby database mongoidThe Mongoid documentation only gives one example of doing a wildcard search: Person.where(first_name: /^d/i) This finds …
ruby-on-rails regex mongodb mongoidI want to query on a Hash field for a Mongoid Class. I'm not sure how I can do this …
ruby-on-rails ruby mongodb mongoid nosqlI have some trouble with mongoid: test "Test candidate" do User.create(:id => 1, :sex => User::Male, :country => 1, :…
ruby-on-rails ruby mongodb mongoid nosql