Want to receive a weekly email containing
the scoop on our new titles along with the
occasional special offer? Just click the button.
(You can always unsubscribe later by editing your
Give us an email and a password (you can use the password later to log in and
change your preferences). We'll send you a newsletter roughly once a week.
what i did was
1. add format.js on carts controller destroy method
2. add remote: true on empty button
3. create destroy.js.erb with
$('#cart').html("<%=j render @cart %>");