title: How to make button link to path in HAML?
body: <p>I originally had just a button that when clicked would direct the user to a different path. Here is the code for that:</p>
  
  <pre><code>  .bar
      %h1.pull-left= t('payer_contracts.payer_contracts')
      = button_to t('payer_contracts.new_payer_contract'), new_payer_contract_path, {:class =&gt; 'btn pull-right', :method =&gt; 'get'}
  </code></pre>
  
  <p>Now, I have a button that is a button dropdown. How exactly can I add a path to the first button "Add Global Payer Contract" and then a different path to the button drop down option "Add BPCI Payer Contract"?</p>
  
  <pre><code>  .bar
      .btn-group.dropdown-end
        %button.btn{:type =&gt; "button"} Add Global Payer Contract
        %button.btn.icon-decrement{"aria-expanded" =&gt; "false", "aria-haspopup" =&gt; "true", "data-toggle" =&gt; "dropdown", :type =&gt; "button"}
        %ul{"aria-hidden" =&gt; "true", :role =&gt; "menu"}
          %li
            %a{:href =&gt; "#"} Add BPCI Payer Contract
  </code></pre>
  
  <p>I am wanting to path "Add Global Payer Contract" to new_payer_contract_path
  and add BPCI Payer Contract to add_new_bpci_path</p>