From 19eb071a7700b67766a6b544a7eb759493f88b50 Mon Sep 17 00:00:00 2001 From: wanglinchun Date: Sat, 10 May 2014 10:37:25 +0800 Subject: [PATCH] dfd --- app/controllers/contests_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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