From b22c7d358c14d0c474e3e09445176b56e765abfd Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Wed, 29 Apr 2020 13:33:53 +0200 Subject: [PATCH] Fix wrong partial path in Ajax::AnswerController#create --- app/controllers/ajax/answer_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/ajax/answer_controller.rb b/app/controllers/ajax/answer_controller.rb index 05a7ba7e..37bc1ec0 100644 --- a/app/controllers/ajax/answer_controller.rb +++ b/app/controllers/ajax/answer_controller.rb @@ -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