app/views/tournaments/index.html.erb
<h1>Listing tournaments</h1>
<table class="table">
<tr>
<th>Name</th>
<th>Status</th>
<th></th>
<th></th>
<th></th>
</tr>
<% @tournaments.each do |tournament| %>
<tr>
<td><%= tournament.name %></td>
<td><%= tournament.status %></td>
<td><%= link_to 'Show', tournament %></td>
<td><%= link_to 'Edit', edit_tournament_path(tournament) %></td>
<td><%= link_to 'Destroy', tournament, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Tournament', new_tournament_path %>