I’d like to do something like this…in English, a Teacher is in a town
They also can have qualifications (from none to lots). How do I do this,
I mean I can see a Teacher could have a QualificationID field which
could have could contain numbers like 3,4,6 (meaning they have
qualifications of X, Y and Z). How do I do it in rails associations?
Teacher (Belongs to a Location)
- QualificationID(s) <—
Location (Has Many Teachers)
Qualification <— what to do here?
Ultimately I’d like to do things like Teacher.Location.name (easy).
I’d like to do Teacher.Qualifications also (Not sure how to express this
but you get the idea).
Any help appreciated…