According to the readme of mongoid on github i can do fancy queries like Person.select(:first_name, :last_name).where(:title => \"Sir\").skip(10).limit(10).paginate
I had this working fine yesterday, made some changes and I have no idea how I broke it. I\'m sure it\'s a typo somewhere, but I cannot see it.
How can I reference the same class twice (or multiple times) within another class with Mongoid? class User
(Apologies in advance if this question is short on details, I\'ll watch the comments and add what I can)
Rails 3.0.1 Mongoid (2.0.0.beta.20) Class Post embeds_many :comments field :comments_count end Class 开发者_StackOverflowComment
I am currently working on a small Rails 3 app to help track secret-santas at work. I am all but done and completely stumped trying to sort out this last problem.
Does anyone know if Mongoid has built in support to alias field names?I\'ve been running some tests where I have a collection with a minimal amount of fields (7 fields).If I use descriptive names and
I have 1000 users that i will be ret开发者_JS百科rieving from Twitter, and I would like to save them at one shot, as opposed to doing 1000 insertions individually.
I have the following scenario.I need to recommend artists to users. How should this be modeled? I am looking for suggestions on this.
I am trying to get Carrierwave (0.5.1) to work with Mongoid (2.0.0.beta.20), Rails 3. I followed every step at this guide.