How do you update relations in Phoenix forms?
In this episode, I answered a learner’s question about how to create and update has_one and belongs_to associations with Phoenix forms.
The short answer is:
use a <%= inputs_for f, :your_association, fn f2 -> %> block inside your form and put the labels and inputs for the associated inside of that.
