diff options
Diffstat (limited to 'app/views/tournaments/show.html.erb')
-rw-r--r-- | app/views/tournaments/show.html.erb | 3 |
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 %> |