From 200520c908a8dc353b5dacd859dffb046be83142 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Tue, 23 Jul 2019 11:03:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/subjects_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/subjects_controller.rb b/app/controllers/subjects_controller.rb index 4e4d494ce..064061058 100644 --- a/app/controllers/subjects_controller.rb +++ b/app/controllers/subjects_controller.rb @@ -161,7 +161,7 @@ class SubjectsController < ApplicationController end @shixuns = @shixuns.reorder("created_at desc") - @shixuns_count = @shixuns.count + @shixuns_count = @shixuns.size ## 分页参数 page = params[:page] || 1