Class: SystemLog::SystemLogController

Inherits:
ActionController::Base
  • Object
show all
Includes:
SystemLogHelper
Defined in:
app/controllers/system_log/system_log_controller.rb

Constant Summary collapse

PER_PAGE =

默认每页显示20条记录

20

Instance Method Summary collapse

Instance Method Details

#clearObject



12
13
14
15
# File 'app/controllers/system_log/system_log_controller.rb', line 12

def clear
  SystemLog.clear
  redirect_to :action => :index
end

#indexObject



8
9
10
# File 'app/controllers/system_log/system_log_controller.rb', line 8

def index
  @logs = SystemLog.logo_data(params[:page]||1,params[:per]||PER_PAGE,params[:search] )
end