rethinking question CRUD
This commit is contained in:
1 parent
ace9b864d3
commit
dfd582d251
11 files changed
+172
-74
No files matched your search
File renamed without changes.
File renamed without changes.
@@ -5,7 +5,7 @@
|
||||
content_for :footer_title, "Skills Assessment"
|
||||
%>
|
||||
|
||||
<%= form_for(@answer, url: post_answer_path(@answer.id), html:{id: 'answer-form', data: {qid: @question.question_id}}) do |form| %>
|
||||
<%= form_for(@answer, url: send("post_#{@question.input_type}_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