From 714c620ea23dab1d4cc10b1c8ae6cf8a8e8f0bf6 Mon Sep 17 00:00:00 2001 From: Patsy Issa Date: Mon, 22 Aug 2016 12:32:22 +0300 Subject: [PATCH] Updated to use the proper renderer --- docs/integrations/ember-and-json-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/integrations/ember-and-json-api.md b/docs/integrations/ember-and-json-api.md index 188fe21c..aab64d72 100644 --- a/docs/integrations/ember-and-json-api.md +++ b/docs/integrations/ember-and-json-api.md @@ -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: