提交 1ea8d9c3 编写于 作者: V Vishnu Atrai 提交者: Xavier Noria

Active Resource - guide for destroy

上级 212654be
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册