From 2a21f7060324214a6be1ba2f37a4e6806635e122 Mon Sep 17 00:00:00 2001 From: Ari Timonen Date: Sun, 19 Apr 2020 04:20:31 +0300 Subject: [PATCH] Do not show join contest header --- app/views/contests/show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/contests/show.html.erb b/app/views/contests/show.html.erb index 8891aa3..9d4070e 100644 --- a/app/views/contests/show.html.erb +++ b/app/views/contests/show.html.erb @@ -26,9 +26,9 @@ <%= link_to 'Edit Contest', edit_contest_path(@contest), class: 'button' %> <% end %> -

Join Contest

- <% if @contest.can_join?(cuser) %> +

Join Contest

+ <%= form_for @contest.contesters.build, html: { class: 'square' } do |f| %> <%= f.hidden_field :contest_id %>