x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<form class="button_to" method="post" action="/products"><input type="hidden" name="_method" value="delete" autocomplete="off" /><button data-confirm="Are you sure?" data-controller="paper-button" type="submit" class="Polaris-Button Polaris-Button--destructive"><span class="Polaris-Button__Content"> <div class="Polaris-Button__Text"> Delete </div> </span> </button><input type="hidden" name="authenticity_token" value="1wQ0PILCXZWSiXwdps11JmWA1z-p2RYU_KLdnbkRbj4S6EBJILSRvgqCpToVTcr5NpZZ87pn9Wiry6OmUeQV8Q" autocomplete="off" /></form><br><form class="button_to" method="post" action="/products"><input type="hidden" name="_method" value="delete" autocomplete="off" /><button data-confirm="Are you sure?" data-controller="paper-button" type="submit" class="Polaris-Button Polaris-Button--iconOnly"><span class="Polaris-Button__Content"> <div class="Polaris-Button__Icon"> <span class="Polaris-Icon"> <svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="M8 3.994c0-1.101.895-1.994 2-1.994s2 .893 2 1.994h4c.552 0 1 .446 1 .997a1 1 0 0 1-1 .997h-12c-.552 0-1-.447-1-.997s.448-.997 1-.997h4zm-3 10.514v-6.508h2v6.508a.5.5 0 0 0 .5.498h1.5v-7.006h2v7.006h1.5a.5.5 0 0 0 .5-.498v-6.508h2v6.508a2.496 2.496 0 0 1-2.5 2.492h-5c-1.38 0-2.5-1.116-2.5-2.492z"></path></svg> </span> </div> </span> </button><input type="hidden" name="authenticity_token" value="yw7SN6EcreekWzqQpm8hCqBuYcfsbyUL5zL67uomSRwO4qZCA2phzDxQ47cV757V83jvC__RxnewW4TVAtMy0w" autocomplete="off" /></form>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<%= paper_button_to("Delete", "/products", method: :delete, destructive: true, data: { confirm: "Are you sure?", }) %><br><%= paper_button_to("/products", method: :delete, data: { confirm: "Are you sure?", }) do |button| %> <% button.with_icon(name: "DeleteMinor") %><% end %>
No notes provided.
No params configured.