Fix wrong partial path in Ajax::AnswerController#create

This commit is contained in:
Andreas Nedbal 2020-04-29 13:33:53 +02:00
parent 45b11bddfd
commit b22c7d358c
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class Ajax::AnswerController < AjaxController
unless inbox
# this assign is needed because shared/_answerbox relies on it, I think
@question = 1
@response[:render] = render_to_string(partial: 'shared/answerbox', locals: { a: answer, show_question: false })
@response[:render] = render_to_string(partial: 'answerbox', locals: { a: answer, show_question: false })
end
end