I had to change computers while studying, so I decided to create a new reals app, and then copy the code from the folder depot_i in, and then run a rake, so that I could jump back in where I left off.
The problem is that the ‘add to cart’ button seems to make an error. When pressed, I get:
NoMethodError in Carts#show Showing /home/bryan/websites/depot/app/views/carts/show.html.erb where line #6 raised: undefined method `title' for nil:NilClass Extracted source (around line #6): 3: <% for item in @cart.line_items %> 4: <tr> 5: <td><%= item.quantity %>×</td> 6: <td><%= item.product.title %></td> 7: <td class="item_price"><%= number_to_currency(item.total_price) %></td> 8: </tr> 9: <% end %>
Any clue where this is coming from? It seems the rakes have taken alright…