We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9f4720 commit f2d59b2Copy full SHA for f2d59b2
docs/general/rendering.md
@@ -122,14 +122,15 @@ Specify the root by passing it as an argument to `render`. For example:
122
render json: @user_post, root: "admin_post", adapter: :json
123
```
124
125
-This will produce serialize as:
+This will be rendered as:
126
```json
127
- {"admin_post": {
128
- "title": "how to do open source"
+ {
+ "admin_post": {
129
+ "title": "how to do open source"
130
}
131
132
-`Note: the Attributes adapter (default) does not include a resource root.`
133
+Note: the `Attributes` adapter (default) does not include a resource root.
134
135
#### serializer
136
0 commit comments