Displaying 1 result from an estimated 1 matches for "delete_from_cart".
2008 Jan 23
1
Weird shopping cart behaviour!
...d %>
Every time the user adds an element to the cart (subscription) a table
is updated with the list of already selected elements. In this table for
every row another ajax form is created (rendered by a partial) to let
the user remove the item:
<% form_remote_tag :url => { :action => :delete_from_cart, :id =>
element } do%>
<%= submit_tag "Remove" %>
<% end %>
Now, the weird behaviour we find is the following:
1. I we select several elements and proceed to remove them one by one,
we find the first Ajax Remove Form (the first button on the list) does
not work. Ins...