Displaying 1 result from an estimated 1 matches for "students_schools".
Did you mean:
students_school
2008 Apr 11
2
Validating an ActiveRecord object and its has_many :through associations
...=> :destroy
has_many :classes, :through => :students_class
has_many :students_extracurricular_activity, :dependent => :destroy
has_many :extracurricular_activities, :through
=> :students_extracurricular_activity
has_many :students_school, :dependent => :destroy
has_many :students_schools, :through => :students_school
end
Suppose a student can''t belong to a class and extracurricular activity
that occur at the same time? I figure that this validation would be
best handled in the Student class since the other case would require
writing validations for both classes and e...