title: How to add search symbol in submit button in HTML file in Rails?
body: <p>I am building a basic app in Rails. I have a page which has a search text field and submit button. The code for it is as follows:</p>
  
  <pre><code>    &lt;%= form_tag '#', method: :get, id: 'stock-lookup-form' do %&gt;
      &lt;div class = 'form-group row no-padding text-center col-md-12'&gt;
          &lt;div class = 'col-md-10'&gt;
              &lt;%= text_field :stock, params[:stock], placeholder:'Stock ticker symbol', autofocus: true,
                  class: 'form-control search-box input-lg' %&gt;
          &lt;/div&gt;
          &lt;div class = 'col-md-2'&gt;
              &lt;%= button_tag(type: :submit, class: 'btn btn-lg btn-success') do %&gt;
                  Look up the stock
              &lt;% end %&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>I tried doing this in the button_tag:</p>
  
  <pre><code>&lt;i class = 'fa fa-search'&gt;&lt;/i&gt;Look up the stock
  </code></pre>
  
  <p>to get the search symbol in front of the text 'Look up the stock'. But the symbol is not displayed. Any suggestions?</p>
  
  <p>P.S I am working on Rails 5 and have installed bootstrap gem in the application.</p>
  
  <p>Thanks inadvance</p>