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:
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:
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
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.