问卷列表每页显示20个
This commit is contained in:
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…
Reference in New Issue