title: Rails button_to - applying css class to button
body: <p>This is silly, but I just can't figure out how to style the input element created by Rails <code>button_to</code> -- and yes, I've read the docs over and over again and tried the samples.</p>
  
  <p>Here's my ERB code:</p>
  
  <pre><code> &lt;%= button_to "Claim", action: "claim", idea_id: idea.id, remote: true, class: 'btn btn-small'  %&gt;
  </code></pre>
  
  <p>And this yield the following HTML:</p>
  
  <pre><code>&lt;form action="/ideas/claim?class=btn+btn-small&amp;amp;idea_id=4&amp;amp;remote=true" class="button_to" method="post"&gt;
    &lt;div&gt;
      &lt;input data-remote="true" type="submit" value="Claim"&gt;
      &lt;input name="authenticity_token" type="hidden" value="pU3umgqrDx3WbalfNK10c9H5B5N4OzPpohs4bWW8mow="&gt;
    &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Whereas all I want is just <code>input</code> to have <code>class = "btn btn-small"</code>.</p>
  
  <p>Help? Thank you!</p>