Quick version (for those familiar with Mongoid & Sinatra): If it\'s not the Psyche/Syck YAML-parsing issue, why else might I get this error when trying to connect to a MongoDB database using Mongo
How can I set default order to my embeded objects, like: 开发者_如何学C class Post embeds_many :comments, :order => \"author\"
class Contest < ActiveRecord::Base has_one :claim_template end class ClaimTemplate include Mongoid::Document
Is it possible to do a one way reference in mongoid? I would like to do something like: class User include Mongoid::Document
Using this modified example from the Rails guides, how does one model a relational \"has_many :through\" association using mongoid?
I have some code where I need to update a record in my mongoDB DB.So I first find the record and then I update the record.However, the records have lots of text data stored with them, so I don\'t want
I\'m running a single instance mongodb, and the database is crashing all the time. Anyone knows if this problem is related with running in a single instance?
I can\'t get my any test to run because every user I try to fabricate generates validation errors. I have the following test.
Is it possible to use Capybara or Webrat开发者_运维技巧 in a Rails app which does not rely on ActiveRecord (no SQL database) ? My app is using MongoDB and Mongoid instead.Sure. Capybara nor webrat rel
I have something like @office = Office.first @offices = Office.where(:status => \"active\") How do I get offices near @office from above variables,