Displaying 1 result from an estimated 1 matches for "componentspecification".
2013 Jul 21
4
how to use activemodel collection.build for a has_many :through association
...en they save those
components that specification will be associated with the newly created
specification. The problem I am having is I can''t work out how to pass
component name to display in my form for the as yet nonexistent
component_specification as it is not accessible through the
ComponentSpecification model.
My models:
class Specification < ActiveRecord::Base
attr_accessible :description, :name, :component_specifications_attributes
validates :name, :presence => true, :uniqueness => true
has_many :component_specifications
has_many :components, :through => :component_specif...