Why am I getting this “undefined method `#<ActiveRecord::Associations::CollectionProxy::ActiveRecord_Associations_CollectionProxy_Survey” error?
问题 I have the following associations: class Question < ActiveRecord::Base has_and_belongs_to_many :footnotes has_and_belongs_to_many :pictures has_many :fields, :dependent => :destroy has_many :surveys, :dependent => :delete_all belongs_to :input belongs_to :element has_many :screenshots belongs_to :standard, :touch => true belongs_to :product, :touch => true belongs_to :condition, :class_name => "Field", :touch => true end class Product < ActiveRecord::Base has_many :questions, :dependent =>