mirror of
https://github.com/github/rails.git
synced 2026-01-25 06:18:04 -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:
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user