Skip to content

Commit

Permalink
Update rendering.md
Browse files Browse the repository at this point in the history
  • Loading branch information
beauby committed Jan 17, 2016
1 parent b9f4720 commit f2d59b2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/general/rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,15 @@ Specify the root by passing it as an argument to `render`. For example:
render json: @user_post, root: "admin_post", adapter: :json
```

This will produce serialize as:
This will be rendered as:
```json
{"admin_post": {
"title": "how to do open source"
{
"admin_post": {
"title": "how to do open source"
}
}
```
`Note: the Attributes adapter (default) does not include a resource root.`
Note: the `Attributes` adapter (default) does not include a resource root.

#### serializer

Expand Down

0 comments on commit f2d59b2

Please sign in to comment.