aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/CHANGELOG
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2006-09-01 01:15:10 +0000
committerRick Olson <technoweenie@gmail.com>2006-09-01 01:15:10 +0000
commit7749c9c2200ad190e3f9935c27f09ec9b95227f2 (patch)
tree5ef693429c4511957bee18bf20594b948bb3a249 /activeresource/CHANGELOG
parente278b72bf3238353906a6cb928410aaf712556f4 (diff)
downloadrails-7749c9c2200ad190e3f9935c27f09ec9b95227f2.tar.gz
rails-7749c9c2200ad190e3f9935c27f09ec9b95227f2.tar.bz2
rails-7749c9c2200ad190e3f9935c27f09ec9b95227f2.zip
Major updates to ActiveResource, please see changelog and unit tests [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4890 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activeresource/CHANGELOG')
-rw-r--r--activeresource/CHANGELOG27
1 files changed, 27 insertions, 0 deletions
diff --git a/activeresource/CHANGELOG b/activeresource/CHANGELOG
index 4b870e5db7..70f2a5eaee 100644
--- a/activeresource/CHANGELOG
+++ b/activeresource/CHANGELOG
@@ -1,5 +1,32 @@
*SVN*
+* Major updates [Rick Olson]
+
+ * Add full support for find/create/update/destroy
+ * Add support for specifying prefixes.
+ * Allow overriding of element_name, collection_name, and primary key
+ * Provide simpler HTTP mock interface for testing
+
+ # rails routing code
+ map.resources :posts do |post|
+ post.resources :comments
+ end
+
+ # ActiveResources
+ class Post < ActiveResource::Base
+ self.site = "http://37s.sunrise.i:3000/"
+ end
+
+ class Comment < ActiveResource::Base
+ self.site = "http://37s.sunrise.i:3000/posts/:post_id/"
+ end
+
+ @post = Post.find 5
+ @comments = Comment.find :all, :post_id => @post.id
+
+ @comment = Comment.new({:body => 'hello world'}, {:post_id => @post.id})
+ @comment.save
+
* Base.site= accepts URIs. 200...400 are valid response codes. PUT and POST request bodies default to ''. [Jeremy Kemper]
* Initial checkin: object-oriented client for restful HTTP resources which follow the Rails convention. [DHH]