Skip to content
This repository has been archived by the owner on Sep 4, 2018. It is now read-only.

Commit

Permalink
Mention api custom template need for respond_with
Browse files Browse the repository at this point in the history
  • Loading branch information
huoxito committed Aug 6, 2014
1 parent 3ac549e commit 2642f72
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions content/api/summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,9 @@ parameter along with the request:
`http://example.com/api/products/1?template=small_show`. The API component of
Spree will then detect this parameter, find the template, and then use this to
render the response.
***
Due to [the way this implemented](https://github.com/spree/spree/blob/v2.3.1/api/lib/spree/api/responders/rabl_template.rb#L5-L18)
you need to ensure the action rendering in your custom template explicitly
calls `respond_with`
***

0 comments on commit 2642f72

Please sign in to comment.