回答編集履歴
1
コードの修正
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
|
```
|