title: Rails: button_tag vs regular %button on HAML
body: <p>I found out that there are 2 ways to create buttons on Ruby on Rails. We are using HAML for our templating.</p>
  
  <p><strong>First way:</strong></p>
  
  <pre><code>= button_tag 'Submit', type: 'submit', class: 'btn btn-primary primary-button'
  </code></pre>
  
  <p><strong>Second way:</strong></p>
  
  <pre><code>%button.btn.btn-primary.primary-button{ type: 'submit' } Submit
  </code></pre>
  
  <p>Both ways converts it to HTML.</p>
  
  <p>What should I choose? Are there any pros/cons of using either/or? Is it just matter of preference? </p>