Permalink
Browse files

in Rendering objects with RecordIdentifier example, locals should ref…

…erence @account not @buyer
  • Loading branch information...
1 parent b3ece73 commit f6f7ae4020b0ca1e07fd0c72518c44801d239200 @mhayes mhayes committed with fxn Aug 12, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/render/partials.rb
@@ -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

0 comments on commit f6f7ae4

Please sign in to comment.