diff options
author | nfoy <nfoy@purdue.edu> | 2014-03-06 21:15:12 -0500 |
---|---|---|
committer | nfoy <nfoy@purdue.edu> | 2014-03-06 21:15:12 -0500 |
commit | e4fe0192a332a324dd207b370252669c88216488 (patch) | |
tree | 463d5e1f42d50417c605fd393a2b6b2b33601c9f /app/views/matches/index.html.erb | |
parent | a892016443d4845c1f738bcc57db82174c53701c (diff) |
matches now belong to tournament
Diffstat (limited to 'app/views/matches/index.html.erb')
-rw-r--r-- | app/views/matches/index.html.erb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/matches/index.html.erb b/app/views/matches/index.html.erb index d258638..d635834 100644 --- a/app/views/matches/index.html.erb +++ b/app/views/matches/index.html.erb @@ -12,13 +12,13 @@ </thead> <tbody> - <% @matches.each do |match| %> + <% @tournament.matches.each do |match| %> <tr> <td><%= match.tournament %></td> <td><%= match.name %></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> |