Skip to content
This repository
Browse code

Active Resource - guide for destroy

  • Loading branch information...
commit 6b361aa629c95b2ac2947013a6d8bb76e5d00da1 1 parent 566d2b9
Vishnu Atrai authored August 01, 2011 fxn committed August 04, 2011
9  railties/guides/source/active_resource_basics.textile
Source Rendered
@@ -60,6 +60,15 @@ person.name = 'Atrai'
60 60
 person.save
61 61
 </ruby>
62 62
 
  63
+h4. Delete
  64
+
  65
+'destroy' method makes a HTTP DELETE request for an existing resource in JSON format to delete that resource.
  66
+
  67
+<ruby>
  68
+person = Person.find(1)
  69
+person.destroy
  70
+</ruby>
  71
+
63 72
 h3. Changelog
64 73
 
65 74
 * July 30, 2011: Initial version by "Vishnu Atrai":http://github.com/vatrai

0 notes on commit 6b361aa

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