From 100ef15246c6c75a71f29684e573352019b9caf3 Mon Sep 17 00:00:00 2001 From: Toru Takahashi Date: Sun, 20 May 2018 22:05:42 +0900 Subject: [PATCH] [bugfix]modified using wrong project in index action --- app/controllers/glossary_categories_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/glossary_categories_controller.rb b/app/controllers/glossary_categories_controller.rb index 102985f..f40f77b 100644 --- a/app/controllers/glossary_categories_controller.rb +++ b/app/controllers/glossary_categories_controller.rb @@ -4,7 +4,7 @@ class GlossaryCategoriesController < ApplicationController before_action :find_project_from_id def index - @categories = GlossaryCategory.where(project_id: @project_id) + @categories = GlossaryCategory.where(project_id: @project.id) end def show