I get this error when I run \'rails g\' (my app seems to run fine otherwise though, but I need to use a generator):
I am trying to use rails 3.1 authentication using mongoid instead of active model class User include Mongoid::Document
I have a structure that has both :id and a :group_id fields. I wish to retrieve all the data which :id equals :group_id.
I have a model like this: class Search include Mongoid::Document embeds_many :terms accepts_nested_attributes_for :terms
I have these 2 models: class Track include Mongoid::Document field :artist, type: String field :title, type: String
Everything connects properly in my app, but when I try to do so by command line I can\'t seem to connect.
I have a simple restful rails api set up to feed json responses, I have a model line.rb where i have following validations.
Let\'s say that my models are User and Project. Each user can be assigned to many projects and each project can have many users assigned. This is a typical many to many relationship and could be store
I am using mongoid as my orm, and i call to_json on the result set. The initial implementation works fine, except for the fact that everything is loaded on the fly (as opposed to eager loading)
I am using Mongoid and I have 2 models, Flow and Node with a referenced parent-child relationship. class Node