aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/render/partials.rb
diff options
context:
space:
mode:
authorMark Hayes <mark@deployfx.com>2010-08-12 12:52:17 -0700
committerMark Hayes <mark@deployfx.com>2010-08-12 12:52:17 -0700
commitb680d153d26fbe38b16b10b33c945d5968e535e7 (patch)
treee9c8626f95c0c3d6cf53ee47d0fda91488ebf908 /actionpack/lib/action_view/render/partials.rb
parent08c37ebf6fcce3718b333721bf992a8087d15b39 (diff)
downloadrails-b680d153d26fbe38b16b10b33c945d5968e535e7.tar.gz
rails-b680d153d26fbe38b16b10b33c945d5968e535e7.tar.bz2
rails-b680d153d26fbe38b16b10b33c945d5968e535e7.zip
in Rendering objects with RecordIdentifier example, locals should reference @account not @buyer
Diffstat (limited to 'actionpack/lib/action_view/render/partials.rb')
-rw-r--r--actionpack/lib/action_view/render/partials.rb2
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