aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/CHANGELOG
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-04-26 23:11:31 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-04-26 23:11:31 +0000
commit63aea3ffa9897e748ff03dd119605453d518ac3f (patch)
tree6620cb06b8d988f87c5b6a8b16147cc722a09f5c /actionpack/CHANGELOG
parent234b0b7ca021cff6e36376c38b7c70321b8550f1 (diff)
downloadrails-63aea3ffa9897e748ff03dd119605453d518ac3f.tar.gz
rails-63aea3ffa9897e748ff03dd119605453d518ac3f.tar.bz2
rails-63aea3ffa9897e748ff03dd119605453d518ac3f.zip
Added :has_many and :has_one for declaring plural and singular resources beneath the current [DHH] Added :name_prefix as standard for nested resources [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6588 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/CHANGELOG')
-rw-r--r--actionpack/CHANGELOG32
1 files changed, 32 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG
index 9797f24410..773458574a 100644
--- a/actionpack/CHANGELOG
+++ b/actionpack/CHANGELOG
@@ -1,5 +1,37 @@
*SVN*
+* Added :name_prefix as standard for nested resources [DHH]. WARNING: May be backwards incompatible with your app
+
+ Before:
+
+ map.resources :emails do |emails|
+ emails.resources :comments, :name_prefix => "email_"
+ emails.resources :attachments, :name_prefix => "email_"
+ end
+
+ After:
+
+ map.resources :emails do |emails|
+ emails.resources :comments
+ emails.resources :attachments
+ end
+
+ This does mean that if you intended to have comments_url go to /emails/5/comments, then you'll have to set :name_prefix to nil explicitly.
+
+* Added :has_many and :has_one for declaring plural and singular resources beneath the current [DHH]
+
+ Before:
+
+ map.resources :notes do |notes|
+ notes.resources :comments
+ notes.resources :attachments
+ notes.resource :author
+ end
+
+ After:
+
+ map.resources :notes, :has_many => [ :comments, :attachments ], :has_one => :author
+
* Added that render :xml will try to call to_xml if it can [DHH]. Makes these work:
render :xml => post