x
<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="polaris-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="71C5rVVyRb2XP888S_Vp94UwMRAf_hG3x0NcRg6lRjr4yz6xQ4zYlrq2OcoLCe_KEquDu9qppEoE7uKJuaNyrA" 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="polaris-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.994C8 2.893 8.895 2 10 2s2 .893 2 1.994h4c.552 0 1 .446 1 .997a1 1 0 0 1-1 .997H4c-.552 0-1-.447-1-.997s.448-.997 1-.997h4zM5 14.508V8h2v6.508a.5.5 0 0 0 .5.498H9V8h2v7.006h1.5a.5.5 0 0 0 .5-.498V8h2v6.508A2.496 2.496 0 0 1 12.5 17h-5C6.12 17 5 15.884 5 14.508z"></path></svg>
</span>
</div>
</span>
</button><input type="hidden" name="authenticity_token" value="STNBrwERNEa1SJiOwQs-AbrEura9YfKToQ7vCKCIkYleqMazF--pbZjBbniB97g8LV8IHXg2R25io1HHF46lHw" autocomplete="off" /></form>
<%= polaris_button_to("Delete", "/products",
method: :delete,
destructive: true,
data: {
confirm: "Are you sure?",
}
) %>
<br>
<%= polaris_button_to("/products",
method: :delete,
data: {
confirm: "Are you sure?",
}
) do |button| %>
<% button.icon(name: "DeleteMinor") %>
<% end %>
No notes provided.
No params configured.