Permalink
Browse files

Active Resource - guide for destroy

  • Loading branch information...
1 parent 566d2b9 commit 6b361aa629c95b2ac2947013a6d8bb76e5d00da1 @vishnuatrai vishnuatrai committed with fxn Aug 1, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 railties/guides/source/active_resource_basics.textile
@@ -60,6 +60,15 @@ person.name = 'Atrai'
person.save
</ruby>
+h4. Delete
+
+'destroy' method makes a HTTP DELETE request for an existing resource in JSON format to delete that resource.
+
+<ruby>
+person = Person.find(1)
+person.destroy
+</ruby>
+
h3. Changelog
* July 30, 2011: Initial version by "Vishnu Atrai":http://github.com/vatrai

0 comments on commit 6b361aa

Please sign in to comment.