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

usages of active resouce

上级 95c2230f
......@@ -21,6 +21,15 @@ class Person < ActiveResource::Base
end
</ruby>
Now the Person class is REST enabled and can invoke REST services very similarly to how Active Record invokes
life cycle methods that operate against a persistent store.
<ruby>
# Find a person with id = 1
ryan = Person.find(1)
Person.exists?(1) # => true
</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.
先完成此消息的编辑!
想要评论请 注册