1
是否有任何快速的方法来为embeds_many-embedded_in关系的窗体? 我有以下几点:Formtastic与Mongoid嵌入关系
class Team
include Mongoid::Document
field :name, :type => String
embeds_many :players
end
class Player
include Mongoid::Document
embedded_in :team, :inverse_of => :players
field :name, :type => String
end
我想创建一个团队,为玩家嵌入的编辑形式。看到https://github.com/bowsersenior/formtastic_with_mongoid_tutorial,但“TODO”在那里。