Displaying 1 result from an estimated 1 matches for "call_type_trunk".
Did you mean:
call_type_trunks
2007 Jul 17
0
Multiple inserts on a through association.
class Trunk < ActiveRecord::Base
has_many :call_type_trunks
has_many :call_types, :through => :call_type_trunks
end
class CallType < ActiveRecord::Base
has_many :call_type_trunks
has_many :trunks, :through => :call_type_trunks
end
class CallTypeTrunk < ActiveRecord::Base
belongs_to :call_type
belongs_to :trunk
end
The associato...