quux00 / depot

Rails 3 Shopping Cart Application
1 stars 0 forks source link

Ch 11: when click last delete line-item button, main store front disappears #1

Closed quux00 closed 13 years ago

quux00 commented 13 years ago

Clicking the Delete button in the sidebar of the store_url (root) page works fine until you click the last one left - then the main store front goes blank. Happens for both JavaScript-enabled and -disabled situations.

quux00 commented 13 years ago

Fixed. Was redirecting to carts page, which would be blank when the cart is empty. Now redirects to store_url. Updated tests. All passing.