Return to Snippet

Revision: 2473
at February 26, 2007 18:29 by wackimonki


Initial Code
<%= button_to "Empty cart", :action => :empty_cart %>

Initial URL

                                

Initial Description
Adds a button in view, which triggers a method.

"Empty cart" is the button name
empty_cart is the method name

Initial Title
Adding Button to View

Initial Tags
rails, button

Initial Language
Ruby