class Block < ActiveRecord::Base
has_many :bricks, :autosave => true
bricks.each do |brick|
brick.name = 'New data'
brick.save # why do I have to call this?
class Brick < ActiveRecord::Base
belongs_to :block, :autosave => true
I found that the only way to make sure the changes within the associated objects get saved for me, was to call
brick.save manually. Even thought I use
:autosave => true