search for: machineserviceitem

Displaying 1 result from an estimated 1 matches for "machineserviceitem".

2006 Jul 13
0
Adding attributes to many through associations
...;'s my models: class Machine < ActiveRecord::Base has_many :machine_service_items has_many :services, :through => :machine_service_items end class Service < ActiveRecord::Base has_many :machine_service_items has_many :machines, :through => :machine_service_items end class MachineServiceItem < ActiveRecord::Base belongs_to :machine belongs_to :service end In my add_machine view I list all the services and under them textfields to fill in the additional attributes for each of the services. What I find difficult is how to create many objects of MachineServiceItem from this for...