问卷选择其他选项报错

dev_new_shixunsrepository
cxt 5 years ago
parent 1bfabb9c42
commit 1734ce2267

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

Loading…
Cancel
Save