title: button_to that submits post with params to create record
body: <p>I am trying to have a button or link that will create a vote, I gather I have to use a post so I am using button_to, my current code is just adding the :song and :user_id to the  button element itself, and thus not working, what am I doing wrong?</p>
  
  <pre><code>&lt;% @songs.each do |song| %&gt;
    &lt;tr&gt;
      &lt;td class="plusvote"&gt;&lt;%= button_to '+', {:controller =&gt; "votes", :action =&gt; "create"}, :song =&gt; song.id, :user=&gt; session[:user_id] , :method=&gt;:post  %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= song.votes.count %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= song.name %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= song.code %&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%= song.album %&gt;&lt;/td&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>There is no error, the button/form when pressed/submitted just won't post correctly because the generated html is:</p>
  
  <pre><code>&lt;form action="/votes" class="button_to" method="post"&gt;
      &lt;div&gt;
          &lt;input song="5" type="submit" user="1" value="+" /&gt;
          &lt;input name="authenticity_token" type="hidden" value="tucB4fQ4XbrnzF3lFcQnMq/1rSaPrcsc/tFJ1SQttns=" /&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>