small medium large xlarge

22 Aug 2012, 16:23
Bess Fernandez (5 posts)

On page 135 about using partials to display the cart, the code sample shows the /app/views/cart/show.html.erb snippet exactly as it appeared two pages earlier (only using the line item rendering, not the nested partial). It should show the full @cart partial in use like so:

<% if notice %>
<p id="notice"><%= notice %></p>
<% end %>

<%= render @cart %>
You must be logged in to comment