Ticket #8518: partial_object_documentation.diff
| File partial_object_documentation.diff, 0.8 kB (added by Catfish, 2 years ago) |
|---|
-
actionpack/lib/action_controller/base.rb
old new 642 642 # # Renders the same partial with a local variable. 643 643 # render :partial => "person", :locals => { :name => "david" } 644 644 # 645 # # Renders the partial, making @new_person available through 646 # # the local variable 'person' 647 # render :partial => "person", :object => @new_person 648 # 645 649 # # Renders a collection of the same partial by making each element 646 650 # # of @winners available through the local variable "person" as it 647 651 # # builds the complete response.