From e4fe0192a332a324dd207b370252669c88216488 Mon Sep 17 00:00:00 2001 From: nfoy Date: Thu, 6 Mar 2014 21:15:12 -0500 Subject: matches now belong to tournament --- app/views/matches/index.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/views/matches/index.html.erb') 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 @@ - <% @matches.each do |match| %> + <% @tournament.matches.each do |match| %> <%= match.tournament %> <%= match.name %> - <%= link_to 'Show', match %> - <%= link_to 'Edit', edit_match_path(match) %> - <%= link_to 'Destroy', match, method: :delete, data: { confirm: 'Are you sure?' } %> + <%= 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?' } %> <% end %> -- cgit v1.2.3-54-g00ecf