mirror of https://github.com/rails/rails
Remove misleading documentation
The docs for ActionView partial renderer state: > 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. The reporter stated: > I can render a collection of hashes without problems: > > = render :partial => "info_row", :collection => my_collection, :as => :d I tested this in a Rails 6.0 rc2 app and hashes were passed as described. Fixes #36897. [ci skip]
This commit is contained in:
parent
599c170d8e
commit
fdb6a90794
|
@ -105,9 +105,6 @@ module ActionView
|
|||
#
|
||||
# <%= render(partial: "ad", collection: @advertisements) || "There's no ad to be displayed" %>
|
||||
#
|
||||
# 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
|
||||
#
|
||||
# Two controllers can share a set of partials and render them like this:
|
||||
|
|
Loading…
Reference in New Issue