in Rendering objects with RecordIdentifier example, locals should reference @account not @buyer

This commit is contained in:
Mark Hayes
2010-08-12 12:52:17 -07:00
committed by Xavier Noria
parent b3ece73114
commit f6f7ae4020

View File

@@ -56,7 +56,7 @@ module ActionView
# you're following its conventions for RecordIdentifier#partial_path. Examples:
#
# # @account is an Account instance, so it uses the RecordIdentifier to replace
# # <%= render :partial => "accounts/account", :locals => { :account => @buyer } %>
# # <%= render :partial => "accounts/account", :locals => { :account => @account} %>
# <%= render :partial => @account %>
#
# # @posts is an array of Post instances, so it uses the RecordIdentifier to replace