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 1/6] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E6=97=B6=EF=BC=8C=E9=94=99=E8=AF=AF=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=9C=A8=E5=85=B6=E4=BB=96=E9=A1=B5=E9=9D=A2=E4=BC=9A?= =?UTF-8?q?=E6=8F=90=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 From fa90219a523df121d802dea5d489573d36023550 Mon Sep 17 00:00:00 2001 From: linhk <304431313@.com> Date: Fri, 22 Aug 2014 17:24:06 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E5=9C=A8=E6=B2=A1=E6=9C=89=E2=80=9C?= =?UTF-8?q?=E6=88=91=E7=9A=84=E8=AF=BE=E7=A8=8B=E2=80=9D=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E9=A1=B9=E6=97=B6"=E6=88=91=E7=9A=84=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E2=80=9D=E6=98=BE=E7=A4=BA=E5=AD=90=E9=A1=B5=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E9=94=99=E8=AF=AF=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/_base_header.html.erb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/views/layouts/_base_header.html.erb b/app/views/layouts/_base_header.html.erb index b943cf565..37b8aa7e7 100644 --- a/app/views/layouts/_base_header.html.erb +++ b/app/views/layouts/_base_header.html.erb @@ -42,15 +42,14 @@