small medium large xlarge

Generic-user-small
04 Jun 2009, 02:40
Xanothos (2 posts)

Why did we go the route of changing the <%= button_to "Add to Cart", :action=>:add_to_cart, :id=>product %> to a form_remote_tag instead of simply using the button_to_remote helper? Is there something that I’m missing by using the button_to_remote that you gain by using the form_remote_tag? I removed the form_remote_tag and replaced it with <%= button_to "Add to Cart", :url=>{:action=>:add_to_cart, :id=>product} %> and everything appears to work the same. Just wondered what I’m breaking by doing this.

You must be logged in to comment