回答編集履歴
1
変数名の修正
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
```rb
|
4
4
|
|
5
|
-
@sales = Sale.where(user_id: 1).where(item_id: [1, 2, 3, 4]).map{ |
|
5
|
+
@sales = Sale.where(user_id: 1).where(item_id: [1, 2, 3, 4]).map{ |sale| sale.item_id }
|
6
6
|
|
7
7
|
```
|
8
8
|
|