我創建了一個帖子和TagObject模型如下 class Post
include Mongoid::Document
include Mongoid::Timestamps
embeds_many :tag_objects
#embeds_many :comments
references_one :uploader, :class_nam
我有一個應用程序在MongoDB的頂部使用Mongoid和更新失敗默默。 的代碼看起來是這樣的: # Are we getting a new attribute? Yes we are!
p "attr first name = #{@attributes['first_name']}"
if user.update_attributes!(@attributes)
u = Us