summaryrefslogtreecommitdiff
path: root/app/views/matches/show.html.erb
diff options
context:
space:
mode:
authorDavisLWebb <davislwebb@ymail.com>2014-03-07 00:38:47 -0500
committerDavisLWebb <davislwebb@ymail.com>2014-03-07 00:38:47 -0500
commit8fc6b48caccdb8fbfe04e41282444e0b916883b3 (patch)
tree6a867cac3da7eed074cf0e102aa7df63bb5dd6bd /app/views/matches/show.html.erb
parent1ecd3d50d0ac73968362f885c9f60ec38253be9a (diff)
luke
Diffstat (limited to 'app/views/matches/show.html.erb')
-rw-r--r--app/views/matches/show.html.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/matches/show.html.erb b/app/views/matches/show.html.erb
index d8112b7..f5a3686 100644
--- a/app/views/matches/show.html.erb
+++ b/app/views/matches/show.html.erb
@@ -9,14 +9,14 @@
</p>
<% if @tournament.hosts.include?(current_user) %>
- <%= form_tag(tournament_match_path(@tournament, @match), method: "put") do %>
+ <%= form_for(@match, method: "put") do |f| %>
<ul>
<% @match.teams.each do |team| %>
- <li><label><input type="radio" name="winner" value="<%= team.id %>">
+ <li><label><%= f.radio_button(:winner, team.id) %>
<%= team.users.collect{|u| u.user_name}.join(", ") %></label></li>
<% end %>
</ul>
- <%= submit_tag("Select winner") %>
+ <%= f.submit("Select winner") %>
<% end %>
<% end %>