Top "Mongoid" questions

Mongoid is the official Ruby Object-Document-Mapper (ODM) for MongoDB.

Can't get mongoid working with Rails 4

I followed the official tutorial. I have sqlite3 commented out in my Gemfile as well as the following lines: gem …

ruby-on-rails mongodb mongoid ruby-on-rails-4
Mongoid query for array field

I have a category field of type Array in Mongoid. Ex. category: ["val1","val2","val3"] Now I want to query …

ruby-on-rails mongoid
Mongoid on RoR3: 1) how to return specific field on query? 2) what inverse_of is needed for?

Well, the title is self-explicative. But, let me elaborate a little better. First of all, I am using Mongoid, a …

ruby-on-rails ruby-on-rails-3 mongodb mongoid
mongoid update all documents with conditions

I have a model class Employee include Mongoid::Document field :first_name field :last_name field :address1 field :address2 field :…

ruby mongoid document
heroku mongohq and mongoid Mongo::ConnectionFailure

UPDATE 9th june 2012: Setup with mongoid 3.0.0.rc at heroku, see this gist: https://gist.github.com/2900804 UPDATE 22th jan 2011: Uri …

ruby-on-rails mongodb heroku mongoid mongohq
Querying embedded objects in Mongoid/rails 3 ("Lower than", Min operators and sorting)

I am using rails 3 with mongoid. I have a collection of Stocks with an embedded collection of Prices : class Stock …

ruby-on-rails mongodb mapreduce mongoid
Retrieving array of ids in Mongoid

how do you retrieve an array of IDs in Mongoid? arr=["id1","id2"] User.where(:id=>arr) You can …

ruby mongoid
Mongoid Scope order by syntax please

I'm using the latest mongoid... How do I do the mongoid equivalent of this active record named_scope: class Comment …

ruby-on-rails mongodb scope mongoid named-scope
How can I get all field names of the Mongoid Document?

I'm building backend system, as written in Iain Hecker's tutorial: http://iain.nl/backends-in-rails-3-1 and I try to adapt …

ruby-on-rails ruby mongodb mongoid
Is there a web server running in mongo?

When I start the config server I can see the following line in the logger: [websvr] admin web console waiting …

mongodb mongoid mongoose mongo-java