search for: component_specifications_attribut

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

2013 Jul 21
4
how to use activemodel collection.build for a has_many :through association
...ving 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_specifications accepts_nested_attributes_for :component_specifications, :allow_destroy => true end class ComponentSpecification < Ac...