Skip to content

Instantly share code, notes, and snippets.

@jeffleeismyhero
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffleeismyhero/1783131f330ac29f49e5 to your computer and use it in GitHub Desktop.
Save jeffleeismyhero/1783131f330ac29f49e5 to your computer and use it in GitHub Desktop.
<data type="array">
<datum>
<TCCategory>
<id type="integer">1</id>
<name>Dining</name>
<category-id type="integer">2</category-id>
<active type="boolean">true</active>
<position type="integer">1</position>
<created-at type="datetime">2010-03-26T16:06:12-05:00</created-at>
<updated-at type="datetime">2010-07-20T14:51:37-05:00</updated-at>
</TCCategory>
</datum>
</data>
collection @categories, root: "data", object_root: "TCCategory"
extends "api/legacy/categories/show"
object @category
attributes :id, :name, :category_id, :active, :position, :created_at,
:updated_at
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment