I am new to Ruby on Rails and I am reading The Agile book. I am just working through the tutorial but got stuck on chapter 10.
I got this error each time I tried to add an item from the Catalogue
Could not find table ‘line_items’
The code in the first one is current_item = line_items.find_by_product_id(product_id)
The code in the second is @line_item = @cart.add_product(product.id)
Can someone kindly help me to understand what I am supposed to be doing. I am really just following the tutorial hoping I will understand as I go along..