I’m trying to build a form using the connection data. I want to make a collection of inputs.
In this way I can make a single nested form:
<%= form_for @conn, page_path(@conn, :index), [as: :user], fn f -> %>
<%= text_input f, :name %>
<%= inputs_for f, :address, fn ff -> %>
<%= text_input ff, :street %>
<%= text_input ff, :city %>
<% end %>
<% end %>
But what about collections?