mercredi 22 mai 2019

Has_many :through association using 3 models

I have 3 models teacher, student, subject. I want to get the list of Students handled by the teacher in a particular subject and in params for subject I want to provide subject_name. how can I do it using has_many :through association? thanks in advance

Aucun commentaire:

Enregistrer un commentaire