我努力讓關聯在Rails中正常工作。我只是在學習語言,所以任何幫助都非常感謝。 我: class Feedback < ActiveRecord::Base
belongs_to :section
end
class Section < ActiveRecord::Base
has_many :questions
has_many :feedbacks
en
class Program < ActiveRecord::Base
has_many :contacts
class Contact < ActiveRecord::Base
belongs_to :program
FactoryGirl.define do
factory :contact do
sequence(....
...
progr