https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/3226-form_for-for-new-objects-with-index-set#ticket-3226-2
I was using form_for to create multiple objects on the same page. All of
them were of the same active record class. Even tho I was using index on the
form_for, it created several form blocks with the same id
new_object_class. This patch adds the _#{index} to the id name if an
index is specified..
Examples and patch are in the lighthouse ticket and includes the appropriate
test case.
Best Regards,
Stephen Blackstone
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---