small medium large xlarge

 

Pt-F-1-31

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
Page History
  • V41: Michael Guren [about 3 years ago]
  • V39: Ian McNaney [over 3 years ago]
  • V40: System [over 3 years ago]
  • V41: Malcolm McKeown [over 3 years ago]
  • V40: Malcolm McKeown [over 3 years ago]
  • V39: Malcolm McKeown [over 3 years ago]
  • V38: Malcolm McKeown [over 3 years ago]
  • V37: Malcolm McKeown [over 3 years ago]
  • V36: joe evans [over 3 years ago]
  • V35: Ilya Fedotov [over 3 years ago]