From 8b6750c1ed198c99e4e04ffe9255c587bd15e4e3 Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Thu, 22 Jan 2015 17:04:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A5=E5=BF=97=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=8F=AA=E8=83=BD=E4=BF=AE=E6=94=B9=E5=BD=93?= =?UTF-8?q?=E5=A4=A9=E7=9A=84=E6=97=A5=E5=BF=97=EF=BC=9A=E8=BF=99=E6=A0=B7?= =?UTF-8?q?=E5=AD=90=E4=BF=9D=E6=8A=A4=E5=8E=9F=E6=9D=A5=E7=9A=84=E6=97=A5?= =?UTF-8?q?=E5=BF=97=EF=BC=8C=E5=8F=88=E8=83=BD=E8=BF=9B=E8=A1=8C=E5=BD=93?= =?UTF-8?q?=E5=A4=A9=E7=9A=84=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/system_log_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/system_log_controller.rb b/app/controllers/system_log_controller.rb index 9342bd7dc..abbb016d9 100644 --- a/app/controllers/system_log_controller.rb +++ b/app/controllers/system_log_controller.rb @@ -1,7 +1,7 @@ # 显示和清理系统日志 class SystemLogController < ApplicationController - before_filter :require_admin + before_filter :require_login # 默认每页显示20条记录 PER_PAGE = 20 layout "base" @@ -14,8 +14,8 @@ end #清除日志 - def clear day - SystemLog.clear day + def clear + SystemLog.clear params[:day] redirect_to :action => :index end