diff options
author | Mark Hayes <mark@deployfx.com> | 2010-08-12 12:52:17 -0700 |
---|---|---|
committer | Mark Hayes <mark@deployfx.com> | 2010-08-12 12:52:17 -0700 |
commit | b680d153d26fbe38b16b10b33c945d5968e535e7 (patch) | |
tree | e9c8626f95c0c3d6cf53ee47d0fda91488ebf908 | |
parent | 08c37ebf6fcce3718b333721bf992a8087d15b39 (diff) | |
download | rails-b680d153d26fbe38b16b10b33c945d5968e535e7.tar.gz rails-b680d153d26fbe38b16b10b33c945d5968e535e7.tar.bz2 rails-b680d153d26fbe38b16b10b33c945d5968e535e7.zip |
in Rendering objects with RecordIdentifier example, locals should reference @account not @buyer
-rw-r--r-- | actionpack/lib/action_view/render/partials.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/render/partials.rb b/actionpack/lib/action_view/render/partials.rb index 459aae94a2..92cdbfb3af 100644 --- a/actionpack/lib/action_view/render/partials.rb +++ b/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 |