Skip to content

Instantly share code, notes, and snippets.

@shankardevy
Created July 9, 2017 04:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shankardevy/ef1a28877e39fe4b9e155e1e117e11f0 to your computer and use it in GitHub Desktop.
Save shankardevy/ef1a28877e39fe4b9e155e1e117e11f0 to your computer and use it in GitHub Desktop.
<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" %>
</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment