summaryrefslogtreecommitdiff
path: root/app/views/matches/index.html.erb
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-03-25 17:38:38 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-03-25 17:38:38 -0400
commit53b4f8028fc987b0cf26a7a073fec7064b4b6d8a (patch)
treed277b31519df83e8a1c060b04c6ea6cf50b5c361 /app/views/matches/index.html.erb
parent0c22c4bd9a0b4a0b0ff5840c1af41c0b320e3529 (diff)
revert Guntas
Diffstat (limited to 'app/views/matches/index.html.erb')
-rw-r--r--app/views/matches/index.html.erb14
1 files changed, 6 insertions, 8 deletions
diff --git a/app/views/matches/index.html.erb b/app/views/matches/index.html.erb
index 400efb4..60df1b5 100644
--- a/app/views/matches/index.html.erb
+++ b/app/views/matches/index.html.erb
@@ -3,7 +3,6 @@
<table>
<thead>
<tr>
- <th>Status</th>
<th>Tournament</th>
<th>Name</th>
<th>Winner</th>
@@ -14,15 +13,14 @@
</thead>
<tbody>
- <% @matches.each do |match| %>
+ <% @tournament.matches.each do |match| %>
<tr>
- <td><%= match.status %></td>
- <td><%= match.tournament %></td>
+ <td><%= match.tournament.id %></td>
<td><%= match.name %></td>
<td><%= match.winner %></td>
- <td><%= link_to 'Show', match %></td>
- <td><%= link_to 'Edit', edit_match_path(match) %></td>
- <td><%= link_to 'Destroy', match, method: :delete, data: { confirm: 'Are you sure?' } %></td>
+ <td><%= link_to 'Show', tournament_match_path(@tournament, match) %></td>
+ <td><%= link_to 'Edit', edit_tournament_match_path(@tournament, match) %></td>
+ <td><%= link_to 'Destroy', tournament_match_path(@tournament, match), method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
@@ -30,4 +28,4 @@
<br>
-<%= link_to 'New Match', new_match_path %>
+<%= link_to 'New Match', new_tournament_match_path %>