Hello, I’m on page 111 of version b10. I’m getting the following error. What could be wrong? Thanks.
NoMethodError in Store#index
Showing /Users/restycena/work/depot/app/views/store/index.html.erb where line #6 raised:
You have a nil object when you didn’t expect it! You might have expected an instance of Array. The error occurred while evaluating nil.each Extracted source (around line #6):
3: <% end %> 4: 5: <h1>Your Pragmatic Catalog</h1> 6: <% @products.each do |product| %> 7: <div class="entry" > 8: <%= image_tag(product.image_url) %> 9: <h3><%= product.title %></h3>