search for: can_teach

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

Did you mean: can_attach
2006 Aug 03
12
More than one has_many :through association between the same 2 models
...er belongs_to :class end The question is... can I do that? Because now the Teacher and Class Models would look like... class Teacher< ActiveRecord::Base has_many :works has_many :classes, :through => :works has_many :works has_many :classes, :through => :can_teach end class Class < ActiveRecord::Base has_many :works has_many :teachers, :through => :works has_many :works has_many :teachers, :through => :can_teach end but this doesn''t work.. Anyone knows how to do this? -------------- next part --------...