Skip to content

Commit 714c620

Browse files
authored
Updated to use the proper renderer
1 parent 49ee823 commit 714c620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/integrations/ember-and-json-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ will generate the path `/posts/{postId}?include='comments'`
117117

118118
So then in your controller, you'll want to be sure to have something like:
119119
```ruby
120-
render json: @post, include: params[:include]
120+
render jsonapi: @post, include: params[:include]
121121
```
122122

123123
If you want to use `include` on a collection, you'd write something like this:

0 commit comments

Comments
 (0)