Forum: Ruby on Rails Error table when loop from database

988cf585499cfbd221e6fd3f877ac507?d=identicon&s=25 kh hacker (Guest)
on 2014-07-08 08:11
(Received via mailing list)
<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>
4c6bde00168d595053c09aac7e487f8e?d=identicon&s=25 Colin Law (Guest)
on 2014-07-08 18:05
(Received via mailing list)
On 8 July 2014 06:11, kh hacker <hackercambo@gmail.com> wrote:
>   <tbody>
> </table>
Do you have a question?  If so then you are more likely to get an
answer if you ask the question.

Colin
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.