Problem using nested_attributes for habtm relationship

Hi,

We are trying to use nested attributes for habtm relationship. While doing the same we are facing some issues with the current implementation of nested_attributes.rb file in active_record.

Problem statement:

image001.png

Consider upgrading to Rails 2.3.11 (or Rails 3) and see if the problem persist.

image001.png

found this was a bug in rails 2.3.8 and already reported here https://rails.lighthouseapp.com/projects/8994/tickets/2415-accepts_nested_attributes_for-doest-work-when-nested_attributes-hash-has-an-id-entry.

you should upgrade to latest rails version.

~N a r e n

image001.png

found this was a bug in rails 2.3.8 and already reported here #2415 accepts_nested_attributes_for does't work when nested_attributes hash has an :id entry - Ruby on Rails - rails.

Using existing IDs in nested_attributes cannot be supported for security reasons. It looks like it makes sense for the 'user has a bunch of roles' case, however for other use cases it's a huge security hole. For instance editing permissions for access to a bank account.

This functionality won't be re-introduced.