Search⌘ K

Updating the Total

Explore updating the total amount in Rails orders by multiplying product prices by quantities. Understand how to fix miscalculations, write tests, and validate accurate totals.

We'll cover the following...

Did you notice that the total is being miscalculated? Currently, it is just adding the price for the products on order regardless of the quantity ...