ys says:

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 %>");
   $('#cart').hide('blind', 1000);
in views/carts