concept edit.html.eex template in category elixir
appears as: edit.html.eex template, n edit.html.eex template

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.