質問編集履歴

2

タイポ修正

2016/11/01 23:44

投稿

innjera
innjera

スコア132

test CHANGED
@@ -1 +1 @@
1
- Rails : “いいね”機能の実装でroute.rbでエラーが出てしまう
1
+ Rails : “いいね”機能の実装でroutes.rbでエラーが出てしまう
test CHANGED
File without changes

1

スペルミス修正

2016/11/01 23:44

投稿

innjera
innjera

スコア132

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, thorough: :votes, source: :user
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, thorough: :votes, source: :product
95
+ has_many :voted_products, through: :votes, source: :product
96
96
 
97
97
 
98
98