Current section

Files

Jump to
phoenix priv templates phoenix.gen.html new.html.eex
Raw

priv/templates/phoenix.gen.html/new.html.eex

<h2>New <%= String.replace(singular, "_", " ") %></h2>
<%= "<%=" %> render "form.html", changeset: @changeset,
action: <%= singular %>_path(@conn, :create) <%= "%\>" %>
<%= "<%=" %> link "Back", to: <%= singular %>_path(@conn, :index) <%= "%\>" %>