学校分页
This commit is contained in:
parent
9d89da7e66
commit
b27a0f2e51
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue