Skip to content
Browse files

usages of active resouce

  • Loading branch information...
1 parent d240ce8 commit 88c101bb3fa4f4a0307218e3bcacde0a44870d93 @vatrai vatrai committed with fxn Jul 30, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 railties/guides/source/active_resource_basics.textile
View
9 railties/guides/source/active_resource_basics.textile
@@ -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

0 comments on commit 88c101b

Please sign in to comment.
Something went wrong with that request. Please try again.