Update_attributes! does not update nested model


#1

Hi!

I have updated my app to rails 2.3. I have form that has few nested
models and I am happy that I can just write
accepts_nested_attributes_for :tasks, :allow_destroy => true, but
update_attributes! does not update my nested model. I have tried
update_attributes, and it works. Any ideas?

Few lines from log:

update_attributes:

SQL (0.1ms) BEGIN
Education Update (0.3ms) UPDATE educations SET institution =
‘ins’, updated_at = ‘2009-02-03 13:34:08’ WHERE id = 4
SQL (0.4ms) COMMIT

update_attributes!:
SQL (0.1ms) BEGIN
SQL (0.1ms) COMMIT


#2

Hi,

I have uploaded a patch to fix this. Thanks for bringing it to my
attention.
http://rails.lighthouseapp.com/projects/8994/tickets/1877

Cheers,
Eloy