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 | |
parent | a892016443d4845c1f738bcc57db82174c53701c (diff) |
matches now belong to tournament
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/matches/index.html.erb | 8 | ||||
-rw-r--r-- | app/views/matches/show.html.erb | 4 |
2 files changed, 6 insertions, 6 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> diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb index 9c9cbb4..e95cd07 100644 --- a/app/views/matches/show.html.erb +++ b/app/views/matches/show.html.erb @@ -8,5 +8,5 @@ <%= @match.name %> </p> -<%= link_to 'Edit', edit_match_path(@match) %> | -<%= link_to 'Back', matches_path %> +<%= link_to 'Edit', edit_tournament_match_path(@tournament, @match) %> | +<%= link_to 'Back', tournament_matches_path %> |