Many to many checkbox form

Right, that’s some of the Ecto - but I’m looking for the full idiomatic Phoenix way to handle this problem from end-to-end. It’s similar to the embedded schema problem that you can find multiple web hits for (that typically uses inputs_for in the form), but it has some uniqueness that makes it different:

  • You need to show all choices in your checkbox list, not just the embedded ones.
  • You need to show which choices have been selected in an edit.
  • You need to accept the results of the form and then probably put_assoc cleanly.