0
4

3 回答 3

2

我认为您可以使用link_to

<%= link_to product, :method => "DELETE", :class => "action-btn btn-delete" do %>
  <i class="icon-edit icon-white"></i>
<% end %>
于 2013-04-23T07:49:44.093 回答
1

我不明白你怎么不能使用[link_to][1]

        <%= link_to product, class: "action-btn btn-delete" do %>             
          <i class="icon-edit icon-white"></i>
        <% end %>
于 2013-04-23T07:47:12.233 回答
1

试试看,可能有效

<%= link_to product, method: :delete, class: "action-btn btn-delete" do %>
  <i class="icon-edit icon-white"></i> Delete
<% end %>
于 2013-04-23T07:48:58.363 回答