mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Added note about render_partial_collection #1557
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1618 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
481cac9658
commit
703d18ea52
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue