回答編集履歴

1

idsしなくてもいけた

2019/01/09 04:54

投稿

退会済みユーザー
test CHANGED
@@ -1,5 +1,5 @@
1
1
  ```ruby
2
2
 
3
- @microposts = Micropost.where(user_id: User.where(university: '東京大学').ids)
3
+ @microposts = Micropost.where(user: User.where(university: '東京大学'))
4
4
 
5
5
  ```