small medium large xlarge

 

Task-E-ASmarterCart

Create a migration that copies the product price into the line item, and add_product method in the Cart model to capture the price whenever a new line item is created. Discuss


Add unit tests which add unique products and duplicate products. Note that you will need to modify the fixture to refer to products and carts by name, for example product: ruby. Discuss


Check products and line items for other places where a user friendly error message would be in order. Discuss


Add the ability to delete individual line items from the cart. This will require buttons on each line, and such buttons will need to be linked to the destroy action in the LineItemsController Discuss

Page History
  • V11: eric tenne [8 months ago]
  • V11: Krishna Aradhi [over 3 years ago]
  • V9: Sam Ruby [over 3 years ago]
  • V8: Sam Ruby [about 5 years ago]
  • V7: Sam Ruby [over 5 years ago]
  • V6: Sam Ruby [over 5 years ago]
  • V5: Sam Ruby [over 5 years ago]
  • V4: Sam Ruby [over 5 years ago]
  • V3: Andrew de Andrade [about 6 years ago]
  • V2: Andrew de Andrade [about 6 years ago]