summaryrefslogtreecommitdiff
path: root/app/views/tournaments/show.html.erb
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-06 20:37:53 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-06 20:37:53 -0500
commit7bcd854443e368806cf1f4ece562c157db723d1a (patch)
tree853ce7d9a5a45ca678daf5a50be4c70f1bd66837 /app/views/tournaments/show.html.erb
parenta1700f50ee800cfbfb93bd7dfff7b5d79ae2cb2f (diff)
fix joining a tournament
Diffstat (limited to 'app/views/tournaments/show.html.erb')
-rw-r--r--app/views/tournaments/show.html.erb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb
index 85ed026..91c1961 100644
--- a/app/views/tournaments/show.html.erb
+++ b/app/views/tournaments/show.html.erb
@@ -1,5 +1,6 @@
<% if @tournament.joinable_by?(current_user) %>
- <%= form_tag(tournament_page(@tournament)+"/join", method: "get") do %>
+ <%= form_tag(tournament_path(@tournament), method: "put") do %>
+ <input type="hidden" name="update_action" value="join">
<%= submit_tag("Join") %>
<% end %>
<% end %>