From 93e291c8e5002fdea906bb8c96cd528fa8b75935 Mon Sep 17 00:00:00 2001 From: tkimia Date: Sat, 26 Apr 2014 19:39:57 -0400 Subject: brackets just get created --- app/views/brackets/index.html.erb | 7 ++----- app/views/common/_show_tournament.html.erb | 4 ---- 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'app/views') diff --git a/app/views/brackets/index.html.erb b/app/views/brackets/index.html.erb index 2195d69..9effe37 100644 --- a/app/views/brackets/index.html.erb +++ b/app/views/brackets/index.html.erb @@ -8,7 +8,6 @@ Name - @@ -18,9 +17,8 @@ <%= bracket.user %> <%= bracket.tournament %> <%= bracket.name %> - <%= link_to 'Show', bracket %> - <%= link_to 'Edit', edit_bracket_path(bracket) %> - <%= link_to 'Destroy', bracket, method: :delete, data: { confirm: 'Are you sure?' } %> + <%= link_to 'Show', tournament_bracket_path(@tournament, bracket) %> + <%= link_to 'Edit', edit_tournament_bracket_path(@tournament, bracket) %> <% end %> @@ -28,4 +26,3 @@
-<%= link_to 'New Bracket', new_bracket_path %> diff --git a/app/views/common/_show_tournament.html.erb b/app/views/common/_show_tournament.html.erb index fb31420..b16a37b 100644 --- a/app/views/common/_show_tournament.html.erb +++ b/app/views/common/_show_tournament.html.erb @@ -30,10 +30,6 @@

You've signed up for this tournament!

<% end %> <%= form_tag(tournament_brackets_path(target), method: "post") do %> - <%= label :user_id, nil, style: "display: none;" %> - <%= text_field_tag :user_id, current_user.id, style: "display: none;" %> - <%= label :tournament_id, nil, style: "display: none;" %> - <%= text_field_tag :tournament_id, target.id, style: "display: none;" %> <%= submit_tag("Make Bracket") %> <% end %> <% end %> -- cgit v1.2.3-54-g00ecf