A subtle difference between button_to
and link_to
is that button_to
defaults to a POST
URL method whereas link_to
defaults to a GET
URL method.
Summary
method
can be ommited in both examples
button_to
<%= button_to("I Post", some_path, method: :post) %>
link_to
<%= link_to("I Get", some_path, method: :get) %>