moving post answer routes back
This commit is contained in:
@ -13,6 +13,6 @@
|
||||
<textarea data-id="code-js" name="code-js" class="code-answer code-js"><%= @answer['js'] unless @answer.nil? %></textarea>
|
||||
</div>
|
||||
|
||||
<%= render partial: "candidate/answer_errors", locals: {question: question, answer: @answer} %>
|
||||
<%= render partial: "candidate/answer_errors", locals: {question: @question, answer: @answer} %>
|
||||
|
||||
<div class="results" data-id="results"></div>
|
||||
|
@ -5,7 +5,7 @@
|
||||
content_for :footer_title, "Skills Assessment"
|
||||
%>
|
||||
|
||||
<%= form_for(@answer, url: send("post_#{@question.input_type}_path", @answer.id), html:{id: 'answer-form', data: {qid: @question.question_id}}) do |form| %>
|
||||
<%= form_for(@answer, url: post_answer_path(@answer.id), html:{id: 'answer-form', data: {qid: @question.question_id}}) do |form| %>
|
||||
<main class="questions_tpl">
|
||||
<h2 class="question-text"><%= @question.question %></h2>
|
||||
|
||||
|
Reference in New Issue
Block a user