<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -22,10 +22,10 @@ module ActionView #:nodoc:
     end
     
     def render_member(object)
-      @locals[@counter_name] += 1
       @locals[:object] = @locals[@variable_name] = object
       
       template = render_template
+      @locals[@counter_name] += 1
       @locals.delete(@variable_name)
       @locals.delete(:object)
       </diff>
      <filename>actionpack/lib/action_view/partial_template.rb</filename>
    </modified>
    <modified>
      <diff>@@ -742,7 +742,7 @@ EOS
   
   def test_partial_collection_with_counter
     get :partial_collection_with_counter
-    assert_equal &quot;david1mary2&quot;, @response.body
+    assert_equal &quot;david0mary1&quot;, @response.body
   end
   
   def test_partial_collection_with_locals
@@ -762,7 +762,7 @@ EOS
 
   def test_partial_collection_shorthand_with_different_types_of_records
     get :partial_collection_shorthand_with_different_types_of_records
-    assert_equal &quot;Bonjour bad customer: mark1Bonjour good customer: craig2Bonjour bad customer: john3Bonjour good customer: zach4Bonjour good customer: brandon5Bonjour bad customer: dan6&quot;, @response.body
+    assert_equal &quot;Bonjour bad customer: mark0Bonjour good customer: craig1Bonjour bad customer: john2Bonjour good customer: zach3Bonjour good customer: brandon4Bonjour bad customer: dan5&quot;, @response.body
   end
 
   def test_empty_partial_collection</diff>
      <filename>actionpack/test/controller/new_render_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>df8154c845f8fb251c58f1fd882cc221cfdcbbc2</id>
    </parent>
  </parents>
  <author>
    <name>Frederick Cheung</name>
    <email>frederick.cheung@gmail.com</email>
  </author>
  <url>http://github.com/rails/rails/commit/2e0765a00361781fb9bff2a7ca8996eab1f01bd4</url>
  <id>2e0765a00361781fb9bff2a7ca8996eab1f01bd4</id>
  <committed-date>2008-06-05T14:11:40-07:00</committed-date>
  <authored-date>2008-06-05T12:48:42-07:00</authored-date>
  <message>Make partial counter start from 0.

Signed-off-by: Pratik Naik &lt;pratiknaik@gmail.com&gt;</message>
  <tree>052d0f7d37f1e25cba948f3de7d396cfb911f52d</tree>
  <committer>
    <name>Pratik Naik</name>
    <email>pratiknaik@gmail.com</email>
  </committer>
</commit>
