diff options
author | Marcel Molina <marcel@vernix.org> | 2007-11-06 18:33:45 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2007-11-06 18:33:45 +0000 |
commit | 7863c4a18a4991c4942f52a4f88bbc1bdd9b7572 (patch) | |
tree | 02e8f16c49c162a0563f4cd9421ceed2bf02f107 /activeresource/README | |
parent | 026973f6a06f97b265eb61baa299d3a8f3f737f6 (diff) | |
download | rails-7863c4a18a4991c4942f52a4f88bbc1bdd9b7572.tar.gz rails-7863c4a18a4991c4942f52a4f88bbc1bdd9b7572.tar.bz2 rails-7863c4a18a4991c4942f52a4f88bbc1bdd9b7572.zip |
Update XML documentation examples to include explicit type attributes. Closes #9754 [hasmanyjosh]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8090 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activeresource/README')
-rw-r--r-- | activeresource/README | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activeresource/README b/activeresource/README index 042af28e06..bcb7b3cbc7 100644 --- a/activeresource/README +++ b/activeresource/README @@ -60,7 +60,7 @@ for a request for a single element - the XML of that item is expected in respons # Expects a response of # - # <person><id>1</id><attribute1>value1</attribute1><attribute2>..</attribute2></person> + # <person><id type="integer">1</id><attribute1>value1</attribute1><attribute2>..</attribute2></person> # # for GET http://api.people.com:3000/people/1.xml # @@ -88,9 +88,9 @@ Collections can also be requested in a similar fashion # Expects a response of # - # <people> - # <person><id>1</id><first>Ryan</first></person> - # <person><id>2</id><first>Jim</first></person> + # <people type="array"> + # <person><id type="integer">1</id><first>Ryan</first></person> + # <person><id type="integer">2</id><first>Jim</first></person> # </people> # # for GET http://api.people.com:3000/people.xml |