From e60adb874faffd9bac678a19043532ff33dc6b07 Mon Sep 17 00:00:00 2001 From: tkimia Date: Sat, 26 Apr 2014 20:14:00 -0400 Subject: bracket creation is good --- app/views/brackets/show.html.erb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'app/views/brackets/show.html.erb') diff --git a/app/views/brackets/show.html.erb b/app/views/brackets/show.html.erb index 9c7c14b..2e92bfb 100644 --- a/app/views/brackets/show.html.erb +++ b/app/views/brackets/show.html.erb @@ -1,13 +1,11 @@ -

<%= notice %>

-

User: - <%= @bracket.user %> + <%= @bracket.user.user_name %>

Tournament: - <%= @bracket.tournament %> + <%= @bracket.tournament.name %>

@@ -15,5 +13,9 @@ <%= @bracket.name %>

-<%= link_to 'Edit', edit_bracket_path(@bracket) %> | -<%= link_to 'Back', brackets_path %> +<% @bracket.bracket_matches.each do |m| %> +

<%= m.match.id %>

+<% end %> + + +<%= link_to 'Back', tournaments_path %> -- cgit v1.2.3-2-g168b