Haml: link_to vs button_to
问题 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 ? 回答1: It's simpler that you think. That methods are Rails helpers and don't have anything to do with haml. Yes, one method is for get and another for post methods.