<% content_for_javascript_once 'live-coder' do javascript_include_tag "live-coder" end option_id = "#{question.question_id}_finish-later" checkbox_html = {class: 'checkbox', id: "answer_#{option_id}", name: "answer[#{question.input_type}][later]", checked: Array(question.answer).include?('finish-later') } answers = answer.try(:answer) || answer value_text = answers['text'] || question.input_options['text'] value_html = answers['html'] || question.input_options['html'] value_css = answers['css'] || question.input_options['css'] value_js = answers['js'] || question.input_options['js'] %> <%= render partial: "quiz/answer_errors", locals: {question: question, answer: answer} %>