title: Rails link_to assigning class and id
body: <pre><code>&lt;%= link_to event do  %&gt;
    #bunch of stuff making up the partial.
  &lt;% end %&gt;
  </code></pre>
  
  <p>So I'm trying to assign an ID and a class to each item in a partial.  I've seen where you have to call the full <code>link_to</code> function like <code>&lt;%= link_to event, { controller: :controller, action: :action }, {class: 'someClass', id: 'someId' } %&gt;</code>.</p>
  
  <p>That's not working for me, because of the do block, methinks?  Ideas?</p>