diff options
author | Vishnu Atrai <vishnu.atrai@gmail.com> | 2011-08-01 21:02:48 +0530 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-08-13 16:22:13 -0700 |
commit | 1ea8d9c38d280e6f55ac3ad1ad4d27d48dcddc15 (patch) | |
tree | 0c5cd3fa4a9ceed97c9f0a2df3eab9c89f4c6fe9 | |
parent | 212654be02e28ee97d75819b0f799ccb6f7b9130 (diff) | |
download | rails-1ea8d9c38d280e6f55ac3ad1ad4d27d48dcddc15.tar.gz rails-1ea8d9c38d280e6f55ac3ad1ad4d27d48dcddc15.tar.bz2 rails-1ea8d9c38d280e6f55ac3ad1ad4d27d48dcddc15.zip |
Active Resource - guide for destroy
-rw-r--r-- | railties/guides/source/active_resource_basics.textile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/railties/guides/source/active_resource_basics.textile b/railties/guides/source/active_resource_basics.textile index 1115b9848f..332d113fa7 100644 --- a/railties/guides/source/active_resource_basics.textile +++ b/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
\ No newline at end of file |