回答編集履歴

1

コードの修正

2020/07/12 08:37

投稿

nyantaroo
nyantaroo

スコア0

test CHANGED
@@ -4,6 +4,6 @@
4
4
 
5
5
  ```ruby
6
6
 
7
- render json: user.to_json(include: { comments: :user })
7
+ render json: user.to_json(include: articles: { include: { comments: :user })
8
8
 
9
9
  ```