I am looking at a book example. In the view section for a Products model, I see some code like this:
<table>
<% @products.each do |product| %>
<tr class="<%= cycle ('list_line_odd', 'list_line_even') %>">
<td>
<%= image_tag(product.image_url, class: 'list_image' %>
</td>
<td class ="list_description ">
<dl>
<dt> <%= product.title %> </dt>
Notice at the top it is using @products, while the last line in the table uses products instead of @products. Can someone explain this a little more?