aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-03 08:05:05 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-03 08:05:05 +0000
commit703d18ea520c3def7bc677cef5fd87e2c7c3cd34 (patch)
treeb1d9a471b4cbef1cf91ce3905e1b0d4030159a67 /actionpack
parent481cac9658848a32838a5a3899610f52844ba2f0 (diff)
downloadrails-703d18ea520c3def7bc677cef5fd87e2c7c3cd34.tar.gz
rails-703d18ea520c3def7bc677cef5fd87e2c7c3cd34.tar.bz2
rails-703d18ea520c3def7bc677cef5fd87e2c7c3cd34.zip
Added note about render_partial_collection #1557
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1618 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/partials.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/partials.rb b/actionpack/lib/action_view/partials.rb
index fe2b4be79c..e078c52262 100644
--- a/actionpack/lib/action_view/partials.rb
+++ b/actionpack/lib/action_view/partials.rb
@@ -33,6 +33,9 @@ module ActionView
# This will render "advertiser/_ad.rhtml" and pass the local variable +ad+ to the template for display. An iteration counter
# will automatically be made available to the template with a name of the form +partial_name_counter+. In the case of the
# example above, the template would be fed +ad_counter+.
+ #
+ # NOTE: Due to backwards compatibility concerns, the collection can't be one of hashes. Normally you'd also just keep domain objects,
+ # like Active Records, in there.
#
# == Rendering shared partials
#