Form inputs for lists as array ecto types in Phoenix
This video goes through making form input helpers for a Phoenix app.
Did you know you could use Elixir Maps and Lists in your Ecto schemas? Have you ever tried making an edit form for a collection type? You can use the phx.gen.html
generators but you’ll get an error if you try to update the field. Let’s make an input_array
helper and fix that!
We’ll do that today, starting from the basic Phoenix app from last time.
Read next Understanding Phoenix.Endpoint