I have this edit button:
<%= link_to edit_income_path(trans), class: \"btn btn-default\" do %>
Is this what you are looking for??
<%= button_to trans, method: :delete, remote: true, class: "btn btn-default" do %> <% end %>