Updated to use the proper renderer

This commit is contained in:
Patsy Issa
2016-08-22 12:32:22 +03:00
committed by GitHub
parent 49ee823a53
commit 714c620ea2

View File

@@ -117,7 +117,7 @@ will generate the path `/posts/{postId}?include='comments'`
So then in your controller, you'll want to be sure to have something like:
```ruby
render json: @post, include: params[:include]
render jsonapi: @post, include: params[:include]
```
If you want to use `include` on a collection, you'd write something like this: