nested resource fields_for is fail for > one nested resource

SYNOPSIS
  using fields_for with a nested attribute numbers the resource index
incorrectly. although this does not cause an exception it does make
scripting js to add additional form elements harder and more error
prone than it needs to be since the form elements generated do reflect
the size of the actual association.

PATCH
  http://gist.github.com/89383

i'm so out of the loop on rails dev i don't know the best way to get a
patch applied. please let me know if something else is needed.

-a

Hi Ara,

The patch looks great.
Could you file a ticket with the same you send in this email and
assign it to me?

Thanks,
Eloy

here's a correctly formatted patch, with tests

  http://gist.github.com/89436

can someone give it a whack and push?

cheers.

-a

Hi Ara,

The patch looks great.
Could you file a ticket with the same you send in this email and
assign it to me?

Thanks,
Eloy

we crossed paths - yes i'll create a ticket too.

thanks!

Hi Ara,

The patch looks great.
Could you file a ticket with the same you send in this email and
assign it to me?

Thanks,
Eloy

https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2401