Active Resource - guide for destroy

This commit is contained in:
Vishnu Atrai
2011-08-01 21:02:48 +05:30
committed by Xavier Noria
parent eed1026e83
commit f3564b9e22

View File

@@ -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