So I have a rake task that runs regularly and afterwards I need to create my indexes again, is there a way I can call those methods directly in ruby without resorting to sending them to the system to
I started studied MongoDB about 2~3 days ago, and I am feeling pretty happy about it :) However.. I do have some questions.. I already did some research, and they did not clarify much.. I am developin
I am trying to achieve the equivalent of this in mongoid (mongoid.org ORM): select * from parents inner join children
I 开发者_开发知识库have a model with a field that can contain a list of values. I want that list to be limited to a subset. I want to use validates_inclusion_of, but probably misunderstand that valida
I am trying to do something like this: if开发者_如何学C params[:q] loc = Geocoder.search(params[:q])[0]
I have a Mongoid model, and the validations aren\'t working, at all. No error message开发者_C百科s, no problems, but I can insert invalid data.
I have the following models class Track include Mongoid::Document field :artist, type: String field :title, type: String
I\'ve a mongoid embedded one to one model in a Rails app (User --> Watchlist) : class User include Mongoid::Document
It\'s not quite clear from the documentation: when and how often should I run rake db:mongoid:create_indexes. Let\'s say I added some inde开发者_如何学编程xes macro to the models already and am never
I am building a cms where the site and pages are stored within mongo. I need to be able to create a new site using another site as a template.