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