質問編集履歴
2
タイポ修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Rails : “いいね”機能の実装でroute.rbでエラーが出てしまう
|
1
|
+
Rails : “いいね”機能の実装でroutes.rbでエラーが出てしまう
|
test
CHANGED
File without changes
|
1
スペルミス修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
has_many :votes, dependent: :destroy
|
58
58
|
|
59
|
-
has_many :voters, th
|
59
|
+
has_many :voters, through: :votes, source: :user
|
60
60
|
|
61
61
|
|
62
62
|
|
@@ -92,7 +92,7 @@
|
|
92
92
|
|
93
93
|
has_many :votes, dependent: :destroy
|
94
94
|
|
95
|
-
has_many :voted_products, th
|
95
|
+
has_many :voted_products, through: :votes, source: :product
|
96
96
|
|
97
97
|
|
98
98
|
|