Skip to content
Browse files

Active Resource - guide for destroy

  • Loading branch information...
1 parent eed1026 commit f3564b9e22ae318dadee6c21c52aba01f91b27bb @vatrai vatrai committed with fxn Aug 1, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 railties/guides/source/active_resource_basics.textile
View
9 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 f3564b9

Please sign in to comment.
Something went wrong with that request. Please try again.