问卷列表每页显示20个

Poll
sw 11 years ago
parent 233070b277
commit 155d48b7cb

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

Loading…
Cancel
Save