From 0c22c4bd9a0b4a0b0ff5840c1af41c0b320e3529 Mon Sep 17 00:00:00 2001 From: guntasgrewal Date: Tue, 25 Mar 2014 17:30:10 -0400 Subject: added match status --- app/views/matches/index.html.erb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 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 60df1b5..400efb4 100644 --- a/app/views/matches/index.html.erb +++ b/app/views/matches/index.html.erb @@ -3,6 +3,7 @@ + @@ -13,14 +14,15 @@ - <% @tournament.matches.each do |match| %> + <% @matches.each do |match| %> - + + - - - + + + <% end %> @@ -28,4 +30,4 @@
-<%= link_to 'New Match', new_tournament_match_path %> +<%= link_to 'New Match', new_match_path %> -- cgit v1.2.3-54-g00ecf
Status Tournament Name Winner
<%= match.tournament.id %><%= match.status %><%= match.tournament %> <%= match.name %> <%= match.winner %><%= 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?' } %><%= link_to 'Show', match %><%= link_to 'Edit', edit_match_path(match) %><%= link_to 'Destroy', match, method: :delete, data: { confirm: 'Are you sure?' } %>