Skip to content

Commit f2d59b2

Browse files
committed
Update rendering.md
1 parent b9f4720 commit f2d59b2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/general/rendering.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,15 @@ Specify the root by passing it as an argument to `render`. For example:
122122
render json: @user_post, root: "admin_post", adapter: :json
123123
```
124124

125-
This will produce serialize as:
125+
This will be rendered as:
126126
```json
127-
{"admin_post": {
128-
"title": "how to do open source"
127+
{
128+
"admin_post": {
129+
"title": "how to do open source"
129130
}
130131
}
131132
```
132-
`Note: the Attributes adapter (default) does not include a resource root.`
133+
Note: the `Attributes` adapter (default) does not include a resource root.
133134

134135
#### serializer
135136

0 commit comments

Comments
 (0)