<table>
  <thead>
    <tr>
      <th>date</th>
      <th>bag</th>
      <th>operator</th>
      <th>district</th>
    </tr>
  </thead>
  <tbody>
    <% @customer.deliveries.each do |delivery| %>
      <tr valign="top" class="<%= cycle('odd', 'even') %>">
          <td>
             <%= delivery.delivered_at %>
          </td>
         <td>
          <% delivery.products.each do |product| %>
            <%= product.description %>,&nbsp;
          <% end %>
        </td>
        <td>
          don't know
        </td>
        <td>
          don't know
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

@customer.deliveries.count give 5 while the table has 6 lines.
Why?
I think it's all ok but I cannot undestand why the each cycle give me
one more line in the table.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to