Re: [Rails] Error table when loop from database

On 8 July 2014 06:11, kh hacker <hackercambo@gmail.com> wrote:
>
> <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>

Do you have a question? If so then you are more likely to get an
answer if you ask the question.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtvLOXejkMTZUDjG4EnjpJChuwav-iQ_DyibYjC7-W_iQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.