Trying to show 3 tables in 1 view

In the index view of team write the code of index view of player and select only the team players by @team.player:

<table>   <tr>     <th>Name</th>     <th>Position</th>     <th>Number</th>   </tr>   <% @team.players.each do |team_player| %>     <tr>       <td><%= team_player.first_name %> <%= team_player.last_name %></td>       <td><%= team_player.position %></td>       <td><%= team_player.number %></td>     </tr>   <% end %> </table>

For the results it's he same.

It worked a treat! thanks a million!

Jax