Home How to use Rails link_to to POST to the controller and have an HTML class attribute?
 I've looked up the link_to in the Apidock but simply can't get the proper Rails syntax to create the following: All Changes Complete  I have: <%= link_to t('view.benefits.all_changes_complete'), { controller: "benefits", action: "create", method: :post }, { class: "btn btn-primary"} %>  The above syntax kind of works, but the method: :post is being added to the href and clicking the link does a GET, resulting in the following: All Changes Complete