<thead>
<tr>
<th>Structure</th>
- <th>Compte</th>
- <th>Classe</th>
- <th>Nom</th>
- <th>Prénom</th>
- <th>Date naissance</th>
- <th>Menu SP?</th>
- <th>Menu ALLERGIE?</th>
+ <th><%= sort_link 'comptes.nom', 'Compte' %></th>
+ <th><%= sort_link 'classrooms.nom', 'Classe' %></th>
+ <th><%= sort_link 'enfants.nom', 'Nom' %></th>
+ <th><%= sort_link 'enfants.prénom', 'Prénom' %></th>
+ <th><%= sort_link 'enfants.date_naissance', 'Date naissance' %></th>
+ <th><%= sort_link 'enfants.menuSP', 'Menu SP?' %></th>
+ <th><%= sort_link 'enfants.menuALL', 'Menu ALLERGIE?' %></th>
<th colspan="2"></th>
</tr>
</thead>
<tfoot><tr><% 10.times do %><th /><% end %></tr></tfoot>
<tbody>
- <%= render @enfants %>
+ <%= render @enfants.includes(:compte, :classroom) %>
</tbody>
</table>