mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Active Resource - guide for destroy
This commit is contained in:
committed by
Xavier Noria
parent
eed1026e83
commit
f3564b9e22
@@ -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
|
||||
Reference in New Issue
Block a user