@ -57,6 +57,8 @@ class PollVotesController < ApplicationController
:vote_text => question_answer_text
}
PollVote.create(answer_option)
# 重新取一次poll_votes
user_votes = @poll_question.poll_votes.find_current_vote("user_id",current_user.id)
end
# if current_vote_text.present? #已有其他输入文字的选项
# current_vote_text.update_attribute("vote_text", question_answer_text)