1
兩個Attendment &單證員:HAS_ONE:通過=>多
belongs_to :event
belongs_to :account
因此:1 attendments和vouchings之間對1的關係。
有沒有辦法做到這一點,而不是我的想法太多?
# attendment
has_one :vouching :through => [:event, :account]
注意:其實我不介意太想。