yeah, I see the different. If you want to through, then that table must have some relation
class Student < ActiveRecord::Base
has_many :degree_plans has_many :courses, :through => :degree_plans
end class Course < ActiveRecord::Base
has_many :degree_plans has_many :students, :through => :degree_plans
How does the value get entered into the join table. I have a simiar example set up but my join table never gets populated. I fail to understand why?
Discussion
yeah, I see the different. If you want to through, then that table must have some relation
class Student < ActiveRecord::Base
end class Course < ActiveRecord::Base
How does the value get entered into the join table. I have a simiar example set up but my join table never gets populated. I fail to understand why?