title: Adding a Twitter Bootstrap button icon to button_to in Rails
body: <p>I am working through the <a href="http://pragprog.com/book/rails4/agile-web-development-with-rails" rel="noreferrer">Agile Web Development with Rails</a> book but I have been using Twitter Bootstrap instead of the custom styling from the book. I am having trouble adding an icon through GLyphonics to the <strong>button_to</strong> method. My code looks like this:</p>
  
  <pre><code>&lt;%= button_to &lt;i class="icon-search icon-white"&gt;Add To Cart&lt;/i&gt;, 
                line_items_path(product_id: product), 
                class: "btn btn-success" %&gt;
  </code></pre>
  
  <p>I have tried quite a few variations but can't seem to get it to work correctly. </p>