title: Custom font-awesome button with content_tag
body: <p>I would like to have a button that looks like <code>Log in with [FB]</code>, wher <code>[FB]</code> is font-awesome icon. (Note that this icon appears at the end). For this purpose, this works:</p>
  
  <pre><code>= form_tag my_path, :method =&gt; :post do
    = button_tag do
      Log in with
      %i.icon-facebook
  </code></pre>
  
  <p>I would like to DRY this up by create a new helper method:</p>
  
  <pre><code>  def button_to_with_icon(path, text, button_class, icon)
      form_tag path, :method =&gt; :post do
        button_tag(:class =&gt; button_class) do
          text
          content_tag :i, "" , :class =&gt; icon.to_sym
        end
      end
    end
  </code></pre>
  
  <p>However, the <code>text</code> argument does not render in HTML. How can I fix this issue?  </p>