Listing matches

<% @tournament.matches.each do |match| %> <% end %>
Tournament Name
<%= match.tournament %> <%= match.name %> <%= link_to 'Show', tournament_match_path(@tournament, match) %> <%= link_to 'Edit', edit_tournament_match_path(@tournament, match) %> <%= link_to 'Destroy', tournament_match_path(@tournament, match), method: :delete, data: { confirm: 'Are you sure?' } %>

<%= link_to 'New Match', new_tournament_match_path %>