In the index view of team write the code of index view of player and
select only the team players by @team.player:
<% @team.players.each do |team_player| %>
<td><%= team_player.first_name %> <%= team_player.last_name
<td><%= team_player.position %></td>
<td><%= team_player.number %></td>
<% end %>
For the results it's he same.