Rails button_to vs. HTML Button Tag
button_to like all others helpers for the views in Rails (e.g. link_to, form_for, image_tag…) simply converts your Rails command in HTML code. We could say that is a shortcut to write “pure HTML”. In your case, for button_to, you can see the reference (and what is printed) here: http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-button_to For example: I suggest you to … Read more