The signature of the method button_to is
button_to(name = nil, options = nil, html_options = nil, &block)
So use {} to distinguish options and html_options
<%= button_to "Claim", {action: "claim", idea_id: idea.id, remote: true}, {class: 'btn btn-small'} %>