diff --git a/app/views/plans/_answer_form.html.erb b/app/views/plans/_answer_form.html.erb index 8d67749..5f262ba 100644 --- a/app/views/plans/_answer_form.html.erb +++ b/app/views/plans/_answer_form.html.erb @@ -167,8 +167,9 @@
<% @comments = Comment.where("question_id = ? AND plan_id = ?", question.id, answer.plan_id ) %> <%= hidden_field_tag :question_id, question.id, :class => "question_id" %> + <% @question_guidances = @plan.guidance_for_question(question) %>
<% end %> - <% @plan.guidance_for_question(question).each_pair do |group,themes| %> + <% @question_guidances.each_pair do |group,themes| %> <% themes.each_pair do |theme,guidances| %> <% guidances.each do |guidance| %>