I have this piece of code:
<%= link_to \"New User\", new_user_path, :class => \"button\" %>
which works fine, but when I
button_to defaults to POST, and link_to defaults to GET, this is why links_to worked. You can force button_to to use GET:
<%= button_to "New User", new_user_path, :class => "button", :method => :get %>
You can get more information about button_to options here: http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-button_to