From 49984204108911ddf87c5206612f2abe72dd3283 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Fri, 22 Aug 2014 16:52:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=AE=E6=94=B9=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E6=97=B6=EF=BC=8C=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=9C=A8=E5=85=B6=E4=BB=96=E9=A1=B5=E9=9D=A2=E4=BC=9A=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/my_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index 14814ed32..0559d1a4a 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -140,11 +140,11 @@ class MyController < ApplicationController @user.password, @user.password_confirmation = params[:new_password], params[:new_password_confirmation] if @user.save - flash[:notice] = l(:notice_account_password_updated) + flash.now[:notice] = l(:notice_account_password_updated) redirect_to my_account_path end else - flash[:error] = l(:notice_account_wrong_password) + flash.now[:error] = l(:notice_account_wrong_password) end end end