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

Poll
z9hang 11 years ago
parent 33fd43e7b6
commit 05b1b9741b

@ -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

Loading…
Cancel
Save