# HG changeset patch # User wytesk133 # Date 2014-12-26 16:40:48 # Node ID 6d2e9920049d7282b765651e74c0f39f99ab6ce7 # Parent 9b23889aa864f834de04b8eb87747ef5d6e86cfa Fixed Individual Contest confirmation diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -192,7 +192,7 @@ def confirm_contest_start user = User.find(session[:user_id]) - if request.method == :post + if request.method == 'POST' user.update_start_time redirect_to :action => 'list' else diff --git a/app/views/main/confirm_contest_start.html.haml b/app/views/main/confirm_contest_start.html.haml --- a/app/views/main/confirm_contest_start.html.haml +++ b/app/views/main/confirm_contest_start.html.haml @@ -12,5 +12,5 @@ =t 'main.confirm_contest_start.timer_starts_after_click' - = form_tag :action => 'confirm_contest_start', :method => 'post' do + = form_tag :action => 'confirm_contest_start' do = submit_tag t('main.confirm_contest_start.start_button'), :confirm => t('main.confirm_contest_start.start_button_confirm')