Normally you would use something like attr_accessible :name, :email to allow for mass assignment for those specific fields but how do you do this in mongoid for an embedded document like :nick_names? I tried tagging it at the end of attr_accesible but it does not work.
Thanks!
I would use a combination of criteria and update all. For instance:
http://mongoid.org/docs/querying/modification.html
If you’re trying to do it via a Rails update, then @apneadiving is correct in that you need to enable
accept_nested_attributes_forin the parent model.