From what I understand, link_to
is used for get methods, and button_to
is used for post methods.
On the other hand, I was told that with HTML5 semantics, <button>
is used for any type of clickable...well, button. In the case I have a clickable button that sends a user to a form to fill out, should I create a button_to
or a link_to
?
method: 'post'
notdata-method: 'post'
to the link – Prinz