Ruby on Rails: 给button_to添加图标

<%= link_to raw("Add To Cart"), 
          line_items_path(product_id: product), 
          class: "btn btn-success",
          method: :put %>

转载自:

Adding a Twitter Bootstrap button icon to button_to in Rails

你可能感兴趣的:(Ruby,on,Rails)