我有两个链接:
<%= link_to("Edit", edit_product_path(product.id)) %>
<%= link_to("Delete", product, :method => :delete) %>
生成的链接是:
<a href="/products/81/edit">Edit</a>
<a href="/products/81" data-method="delete" rel="nofollow">Delete</a>
同时单击 onEdit和 on 时Delete,使用该GET方法。
Rails 如何决定使用哪种方法?
data-method="delete"链接中的含义和rel="nofollow"含义是什么Delete?