I was working through Chapter 12 (I read the preface but wanted to forge ahead.) Now suddenly my store returns:
` NoMethodError in Store#index
Showing layouts/store.html.erb where line #18 raised:
You have a nil object when you didn’t expect it! The error occurred while evaluating nil.items Extracted source (around line #18):
15: <div id="columns"> 16: <div id="side"> 17: 18: <% hidden_div_if(@cart.items.empty?, :id => “cart”) do %> 19: <%= render(:partial => “cart”, :object => @cart) %> 20: <% end %> 21: RAILS_ROOT: /Users/pnewman/work/depot4
Application Trace | Framework Trace | Full Trace
How do I trace this?