I have a simple shopping cart. The whole cart is in a form so i can
update the quantity, this works fine. How should i make the
“delete_item” to work? I know i shouldn’t use normal links, and i cant
have nested forms so i cant use button_to.
The only solution is multiple submit buttons. How can they tell which
item to delete?(how to pass the id of the product). I am guessing by
hidden fields or smth but still cant figure this out.