<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -269,7 +269,7 @@ module Merb::RenderMixin
     with = [opts.delete(:with)].flatten
     as = opts.delete(:as) || template_location.match(%r[.*/_([^\.]*)])[1]
     
-    @_merb_partial_locals = opts.merge(:collection_index =&gt; 0, :collection_size =&gt; with.size)
+    @_merb_partial_locals = opts.merge(:collection_index =&gt; -1, :collection_size =&gt; with.size)
     
     # this handles an edge-case where the name of the partial is _foo.* and your opts
     # have :foo as a key.
@@ -278,9 +278,8 @@ module Merb::RenderMixin
     sent_template = with.map do |temp|
       @_merb_partial_locals[as.to_sym] = temp unless named_local
       if template_method &amp;&amp; self.respond_to?(template_method)
-        sent = send(template_method)
         @_merb_partial_locals[:collection_index] += 1
-        sent
+        send(template_method)
       else
         raise TemplateNotFound, &quot;Could not find template at #{template_location}.*&quot;
       end</diff>
      <filename>lib/merb-core/controller/mixins/render.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>088f956443e93d50d1b740e71b9454099efec73f</id>
    </parent>
  </parents>
  <author>
    <name>Carl Lerche</name>
    <email>carllerche@mac.com</email>
  </author>
  <url>http://github.com/wycats/merb-core/commit/df7306d346d9ee721f15e3adb0367f0c188f2e66</url>
  <id>df7306d346d9ee721f15e3adb0367f0c188f2e66</id>
  <committed-date>2008-07-24T22:35:01-07:00</committed-date>
  <authored-date>2008-07-24T22:35:01-07:00</authored-date>
  <message>Slight refactoring of the partial method</message>
  <tree>9c110235bd78b5b6c39a4336c6cc9d0cd036ce36</tree>
  <committer>
    <name>Carl Lerche</name>
    <email>carllerche@mac.com</email>
  </committer>
</commit>
