Error table when loop from database

9 views
Skip to first unread message

kh hacker

unread,
Jul 8, 2014, 1:11:39 AM7/8/14
to rubyonra...@googlegroups.com

<table>
  <thead>
    <tr>
      <th>Name</th>
      <th>Photo</th>
      <th colspan="3">Task List</th>
    </tr>
  </thead>

  <tbody>
    <% @staffs.each do |staff| %>
    <% @item1s.each do |item1| %>
      <tr>
        <td><%= staff.name %></td>
        <td><%= item1.name %></td>
      </tr>
  
    <% end %>
      <% end %>
  </tbody>
</table>

Colin Law

unread,
Jul 8, 2014, 12:04:58 PM7/8/14
to rubyonra...@googlegroups.com
Do you have a question? If so then you are more likely to get an
answer if you ask the question.

Colin
Reply all
Reply to author
Forward
0 new messages