I’ve hit a roadblock while adding partial templates for the cart & line items. I’ve created the _line_item.html.erb & _cart.html.erb files as per the book & updated the carts/show.html.erb, application.html.erb & store_controller.rb files. Everything looks ok when I’m looking at the store page, or at the cart, but when I navigate to the home page or to a signup page that was created by my project partner, i get the following error:
‘nil’ is not an ActiveModel-compatible object that returns a valid partial path.
Extracted source (around line #23):
20: <div id="side"> 21: <!-- START_HIGHLIGHT --> 22: <div id="cart"> 23: <%= render @cart %> 24: </div> 25: <!-- END_HIGHLIGHT --> 26:
. . . .
Any able to help?