After completing the coding (which I have rechecked many times) for the Checkout Forms on 143-145, upon clicking the checkout button I received the following error. The Store page works fine, it adds items to the Cart, Empty Cart works fine, the following only occurs when I click Checkout. Any thoughts?
NoMethodError in Store#checkout
Showing app/views/layouts/store.html.erb where line #19 raised:
undefined method `items’ for nil:NilClass
Extracted source (around line #19):
16: <div id="columns"> 17: <div id="side"> 18: <div id="cart"> 19: <% hidden_div_if(@cart.items.empty?, :id => “cart”) do %> 20: <%= render(:partial => “cart”, :object => @cart) %> 21: <% end %> 22: </div>