summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-26 19:39:57 -0400
committertkimia <tkimia@purdue.edu>2014-04-26 19:39:57 -0400
commit93e291c8e5002fdea906bb8c96cd528fa8b75935 (patch)
tree0b000e5c51f8928ba37859bfc0bc7086cd3c272a /app/views
parent96dd3fbe302eec54b34678e098d3b59710b09b5f (diff)
brackets just get created
Diffstat (limited to 'app/views')
-rw-r--r--app/views/brackets/index.html.erb7
-rw-r--r--app/views/common/_show_tournament.html.erb4
2 files changed, 2 insertions, 9 deletions
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 @@
<th>Name</th>
<th></th>
<th></th>
- <th></th>
</tr>
</thead>
@@ -18,9 +17,8 @@
<td><%= bracket.user %></td>
<td><%= bracket.tournament %></td>
<td><%= bracket.name %></td>
- <td><%= link_to 'Show', bracket %></td>
- <td><%= link_to 'Edit', edit_bracket_path(bracket) %></td>
- <td><%= link_to 'Destroy', bracket, method: :delete, data: { confirm: 'Are you sure?' } %></td>
+ <td><%= link_to 'Show', tournament_bracket_path(@tournament, bracket) %></td>
+ <td><%= link_to 'Edit', edit_tournament_bracket_path(@tournament, bracket) %></td>
</tr>
<% end %>
</tbody>
@@ -28,4 +26,3 @@
<br>
-<%= 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 @@
<p style="margin-top:10px;"> You've signed up for this tournament! </p>
<% 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 %>