Hi, I’ve got two schema - Parent & Student. These have many-to-many associations between them.
I’m developing a CRUD app using phoenix. I’ve already created a form to create new Parents and it’s working well.
I wish to provide another form which will enable the user to create a Student record. However, from within this form (or a pop-up modal form), I wish to have the something that allows me to click-select and associate the Student record I’m creating with one/two existing Parent records.
Could someone please suggest a facility within Phoenix/Ecto that readily provides this, if it exists? Or what would you recommend as best practice for such a use case.
Any help would be greatly appreciated.