Thursday, April 17, 2008
Rails partial collection counter behavior changed
In migrating from rails 1.2 to 2.1 (edge), we found that the automatic counter is no longer a zero-based index, it starts with 1 now. I can see how that's a more useful default but it took a while to figure out why all our partial_counter == 0 conditions were failing.
Subscribe to:
Posts (Atom)