diff --git a/app/controllers/contests_controller.rb b/app/controllers/contests_controller.rb index 8968f0bf..85fa7244 100644 --- a/app/controllers/contests_controller.rb +++ b/app/controllers/contests_controller.rb @@ -376,10 +376,10 @@ class ContestsController < ApplicationController contest_message = params[:contest_for_save][:contest_message] if ContestingSoftapplication.where("softapplication_id = ? and contest_id = ?", softapplication.id, @contest.id).size == 0 if ContestingSoftapplication.create_softapplication_contesting(@contest.id, softapplication.id, contest_message) - flash[:notice] = l(:label_release_add_contest_succeed) + flash.now[:notice] = l(:label_release_add_contest_succeed) end else - flash[:error] = l(:label_add_contest_succeed_fail) + flash.now[:error] = l(:label_add_contest_succeed_fail) end @contesting_softapplication = paginateHelper @contest.contesting_softapplications