Highlight effect for ajax cart
Michael Curtis
2 posts
|
For some reason, the id=”current_item” only gets set the second time I add an item to a cart. The first time it just gets placed in a naked <tr> tag. Anybody see something wrong with my code? cart.rb
store_controller.rb
_cart_item.html.erb
add_to_cart.js.rjs
|
Sam Ruby
166 posts
|
The else clause in cart.rb should read: current_item = CartItem.new(product) @items << current_item |
Michael Curtis
2 posts
|
That did it, thanks for the reply! |
3 posts, 2 voices
