aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-06-23 17:36:13 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-06-23 17:36:13 +0000
commit8d8219ccffda31cc157769d3a8650044a3f15624 (patch)
treec7644ff1810356cdf97c9257d6ee63bb503638c0 /actionpack/lib
parent3ae2bf09874294e018b23e89e1ce8278e950bf98 (diff)
downloadrails-8d8219ccffda31cc157769d3a8650044a3f15624.tar.gz
rails-8d8219ccffda31cc157769d3a8650044a3f15624.tar.bz2
rails-8d8219ccffda31cc157769d3a8650044a3f15624.zip
Docfix (closes #8518)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7103 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rwxr-xr-xactionpack/lib/action_controller/base.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/base.rb b/actionpack/lib/action_controller/base.rb
index 883a671270..d3aff6a2c2 100755
--- a/actionpack/lib/action_controller/base.rb
+++ b/actionpack/lib/action_controller/base.rb
@@ -642,6 +642,10 @@ module ActionController #:nodoc:
# # Renders the same partial with a local variable.
# render :partial => "person", :locals => { :name => "david" }
#
+ # # Renders the partial, making @new_person available through
+ # # the local variable 'person'
+ # render :partial => "person", :object => @new_person
+ #
# # Renders a collection of the same partial by making each element
# # of @winners available through the local variable "person" as it
# # builds the complete response.