Skip to content

Instantly share code, notes, and snippets.


shankardevy/edit.html.eex Secret

Created Jul 9, 2017
What would you like to do?
<h2>Edit <%= schema.human_singular %></h2>
<%%= render "form.html", changeset: @changeset,
action: <%= schema.route_helper %>_path(@conn, :update, @<%= schema.singular %>) %>
<span class="pull-right">
<%%= link "Delete",
to: <%= schema.route_helper %>_path(@conn, :delete, @<%= schema.singular %>),
method: :delete,
data: [confirm: "Are you sure?"],
class: "btn btn-danger" %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment