We were using single quotes inside ERB code when that code was inside HTML double quotes.
3 lines
187 B
Plaintext
3 lines
187 B
Plaintext
<% token = poll_voter_token(@question.poll, current_user) %>
|
|
$("#<%= dom_id(@question) %>_answers").html("<%= j render("polls/questions/answers", question: @question, token: token) %>");
|