学校分页

This commit is contained in:
lizanle 2015-10-24 11:37:38 +08:00
parent 9d89da7e66
commit b27a0f2e51
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ class AdminController < ApplicationController
@schools = School.where('1=1')
end
@school_count = @schools.count
@school_pages = Paginator.new @school_count, per_page_option, params['page'] || 1
@school_pages = Paginator.new @school_count, 100, params['page'] || 1
@schools = paginateHelper @schools,100
respond_to do |format|
format.html