Undefined 'items' for..."Building a Store With a Payment Gateway in Rails"

Right around 4:29min into the video section for “Notify”.

There’s a minor error. Instead of writing <% @order.items.each do |item| %>, I needed to write <% @order.order_items.each do |item| %>

All I’m doing is replacing items with order_items. It’s correct in the github repo but didn’t see it mentioned the video.

I hope this helps.

Cheers!

Thanks for pointing that out, @dccar!

I’ve added an annotation to the video to help future viewers.

1 Like

No prob :slight_smile: