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 %>