问卷调查页面修改为每页显示5题

This commit is contained in:
z9hang 2015-01-17 13:35:15 +08:00
parent 33fd43e7b6
commit 05b1b9741b
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class PollController < ApplicationController
@can_edit_poll = (!has_commit_poll?(@poll.id,User.current.id)) || User.current.admin?
@percent = get_percent(@poll,User.current)
poll_questions = @poll.poll_questions
@poll_questions = paginateHelper poll_questions,3 #分页
@poll_questions = paginateHelper poll_questions,5 #分页
respond_to do |format|
format.html {render :layout => 'base_courses'}
end