Rails button_to - applying css class to button
问题 This is silly, but I just can't figure out how to style the input element created by Rails button_to -- and yes, I've read the docs over and over again and tried the samples. Here's my ERB code: <%= button_to "Claim", action: "claim", idea_id: idea.id, remote: true, class: 'btn btn-small' %> And this yield the following HTML: <form action="/ideas/claim?class=btn+btn-small&idea_id=4&remote=true" class="button_to" method="post"> <div> <input data-remote="true" type="submit" value="Claim">