反馈 帖子分页错误

greatghoul · February 26, 2013 · Last by huacnlee replied at February 27, 2013 · 2004 hits

http://ruby-china.org/topics/popular?page=100

帖子的分页到后面都是空白

:trollface:

@topics = Topic.send(name.to_sym).last_actived.fields_for_list.includes(:user).paginate(:page => params[:page], :per_page => 15, :total_entries => 1500)

这个小 Bug 问题不大 设置固定 total_entries => 1500 是为了省去 count 查询(这个会比较慢)

原来如此。

#2 楼 @huacnlee 不过也就是说比较靠前的就看不到了?

#4 楼 @Tony612 用搜索,或者按分类查看

You need to Sign in before reply, if you don't have an account, please Sign up first.