|
|
@ -14,7 +14,7 @@ if @poll_questions_count > 0
|
|
|
|
json.array! @poll_questions do |question|
|
|
|
|
json.array! @poll_questions do |question|
|
|
|
|
json.partial! "polls/commit_answers_result", question: question,
|
|
|
|
json.partial! "polls/commit_answers_result", question: question,
|
|
|
|
answers:question.poll_answers,
|
|
|
|
answers:question.poll_answers,
|
|
|
|
question_votes:question.poll_votes.where(user_id:@poll_commit_ids) #问题的全部答案
|
|
|
|
question_votes: question.poll_votes.where(user_id:@poll_commit_ids) #问题的全部答案
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
else
|
|
|
|
else
|
|
|
|