Currently, I have an edit button displayed as:
<%= link_to edit_income_path(trans), class: "btn btn-default" do %>
<i class="glyphicon glyphicon-pencil"></i>
<% end %>
I would like to add a delete button that looks identical to the edit button, with the icon class "glyphicon glyphicon-trash". However, I am struggling to find the correct syntax to achieve this. Here is my current delete button code:
<%= button_to "delete", trans, :method=> :delete, :remote=> true %>
Any guidance on how to make my delete button match the style of the edit button would be greatly appreciated.