在rails 3中使用button_to“delete”的bootstrap图标

我有这个编辑按钮:

   

我希望删除按钮看起来与此图标相同:glyphicon glyphicon-trash,但我找不到合适的语法使其工作并且看起来一样。 我的删除按钮现在:

  :delete, :remote=> true %> 

这就是它的样子

尝试这个…例如使用link _to

 <%= link_to (' ').html_safe, vote_path(@image), :method=> :delete, :remote=> true%> 

这是你想要的??

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