small medium large xlarge

Generic-user-small
28 Jun 2013, 01:55
Mark Greene (2 posts)

I’ve made it to the point where we add validation to order.rb(p166). The books line_items.yml looks like this:

one:
  product: ruby
 ➤order: one
two:
  product: ruby
  cart: one

</code>

The book states: “Note that if you didn’t choose to do the optional exercises in Playtime, on page 132, you will need to modify all of the references to products and carts at this time.”

I didn’t choose to play and my line_items.yml file looks like:

one:
  product_id: 
  cart_id: 

two:
  product_id: 
  cart_id:

</code>

If I change it to look like the book 30+ test start failing. What did I miss? Up to this point my app looks and works like the book.

Generic-user-small
29 Jun 2013, 03:24
Mark Greene (2 posts)

OK, I started over with B4 of the book (I started with a pre-beta). Did the Playtime for Iteration E and now I think I’m OK (I have the correct line_items.yml). I’m working on Iteration F and will soon be back to where my trouble started so we shall see.

You must be logged in to comment