Move action to create answers to AnswersController
It was confusing to have the action to create an answer in `QuestionsController#answer` while the action to destroy it was `AnswersController#destroy`.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
"aria-pressed": true %>
|
||||
<% else %>
|
||||
<%= button_to question_option.title,
|
||||
answer_question_path(question, answer: question_option.title),
|
||||
question_answers_path(question, answer: question_option.title),
|
||||
remote: true,
|
||||
title: t("poll_questions.show.vote_answer", answer: question_option.title),
|
||||
class: "button secondary hollow",
|
||||
|
||||
Reference in New Issue
Block a user