Using bootstrap icons with button_to “delete” in rails 3

前端 未结 2 1231
甜味超标
甜味超标 2020-12-11 23:55

I have this edit button:

<%= link_to edit_income_path(trans), class: \"btn btn-default\" do %>
         


        
2条回答
  •  情歌与酒
    2020-12-12 00:42

    Is this what you are looking for??

    <%= button_to trans, method: :delete, remote: true, class: "btn btn-default" do %>
      
    <% end %>
    

提交回复
热议问题