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:
Javi Martín
2024-05-14 01:49:56 +02:00
parent 9a840bb8d1
commit 03f89c9ca2
5 changed files with 21 additions and 22 deletions

View File

@@ -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",