Forum: Ruby on Rails update_attributes! does not update nested model

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
darkofabijan (Guest)
on 2009-02-03 16:53
(Received via mailing list)

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:


 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

  SQL (0.1ms)   BEGIN
  SQL (0.1ms)   COMMIT
Eloy D. (Guest)
on 2009-02-05 11:33
(Received via mailing list)

I have uploaded a patch to fix this. Thanks for bringing it to my

This topic is locked and can not be replied to.