title: How do I set the ID in a link_to tag in haml?
body: <p>I've tried </p>
  
  <pre><code>= link_to 'foo', :action =&gt; 'bar', :id =&gt; 'foobar'
  </code></pre>
  
  <p>But ID only seems to modify the href, resulting in </p>
  
  <pre><code>&lt;a href="controller/foobar/bar"&gt;foo&lt;/a&gt;
  </code></pre>
  
  <p>How do I set the ID correctly? Also can someone explain to me why :id is modifying the href just so I can understand what's going on behind the scenes?</p>