NoMethodError in StoreController#add_to_cart

Hi

I am new to Rails, and I was trying to follow the “Agile Web Development With Rails” textbook. As I was trying to create the “Add_to_cart” application, I found that when I clicked the “Add to Cart” link on my http://localhost:3000/store page, I got the following error:

NoMethodError in Store#display_cart

Hi

I am still waiting for a reply !!

Thanks, Kapil

I have been waiting for some help from the gurus out here for last 5 days. Anything I have been trying is not working !!

Thanks, Kapil

Hi Stijn ,

Thanks !!

On printing the items, I saw that my product did not have any order_id. On thorough analysis of my code, I found that I had mistakenly added an extra constructor in the line_items.rb file which was causing the problem. But it took me decent amount of time to do the code review. Things are working fine now.

Apologies for bothering the community unnecessarily.

Regards, Kapil

But i had thought that the