concept edit.html.eex template in category elixir

appears as: edit.html.eex template, n edit.html.eex template
Phoenix in Action

This is an excerpt from Manning's book Phoenix in Action.

The only change required is on the first line, where you tell form_for/3 where to point the form it generates. Because you passed item_path(@conn, :create) into the template as the @action assign, you can tell form_for/3 that @action contains the information it needs. That also frees you up to call this template from an edit.html.eex template.

Listing 9.25. Creating the edit.html.eex template
<h1>Edit <%= @item.data.title %></h1>

<%= render("form.html", item: @item,
                        action: Routes.item_path(@conn, :update, @item.data)) %>#1