问卷列表每页显示20个

This commit is contained in:
sw 2015-01-17 14:41:33 +08:00
parent 233070b277
commit 155d48b7cb
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class PollController < ApplicationController
else else
polls = Poll.where("polls_type = 'Course' and polls_group_id = #{@course.id} and polls_status = 2") polls = Poll.where("polls_type = 'Course' and polls_group_id = #{@course.id} and polls_status = 2")
end end
@polls = paginateHelper polls,10 #分页 @polls = paginateHelper polls,20 #分页
respond_to do |format| respond_to do |format|
format.html{render :layout => 'base_courses'} format.html{render :layout => 'base_courses'}
end end