/ Published in: Ruby
Adds a button in view, which triggers a method.
"Empty cart" is the button name empty_cart is the method name
Expand |
Embed | Plain Text
<%= button_to "Empty cart", :action => :empty_cart %>
You need to login to post a comment.
