質問編集履歴

2

へこう

2018/02/10 11:50

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -36,7 +36,7 @@
36
36
 
37
37
  class Product < ApplicationRecord
38
38
 
39
- has_many :product_categories
39
+ has_many :product_tags
40
40
 
41
41
  has_many :tags, through: :product_tags
42
42
 

1

変更

2018/02/10 11:50

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -38,7 +38,7 @@
38
38
 
39
39
  has_many :product_categories
40
40
 
41
- has_many :categories, through: :product_categories
41
+ has_many :tags, through: :product_tags
42
42
 
43
43
  end
44
44