Jeff DeanJeff Dean
New York Standup 10/6/2008: Partial Counters
edit Posted by Jeff Dean on Monday October 06, 2008 at 01:27PM

Interesting Things

  • When using standard rails partials you always have a local variable named _counter. In previous versions of rails, the partial_counter variable was set to 0 when you passed an object, and set to 1 for the first item in a collection. Now it appears to start at 0 whether you pass an object or a collection.

  • Brian Takita has begun work on chaining doubles in RR

Comments

  1. jack dempsey jack dempsey on October 09, 2008 at 04:21PM
  2. jack dempsey jack dempsey on October 09, 2008 at 04:22PM

    Lets try that again...

    I thought doubles already chained:

    http://gist.github.com/15811

  3. Jeff Dean Jeff Dean on October 16, 2008 at 12:09AM

    They did - but now they are even hipper:

    http://pivots.pivotallabs.com/users/brian/blog/articles/540-rr-0-6-0-released

Add a Comment (MarkDown available)