Hi all,

I've seen the discussions on the update to datamapper and what is
considered a "dirty resource" but still need to ask the following
question. This is in relation to version 0.10.2 ... Here's a trimmed
down version of the models I have.

class Publication
  include DataMapper::Resource
  property :id, Serial
  property :published, Boolean, :default => false
  has 1, :asset
end

class Asset
  include DataMapper::Resource
  property :id, Serial
  property :title, String
  belongs_to :publication
end

I have nested fields for editing / Updating an Asset attributes, via
the form, like this: publication[asset][...] which I use when making a
new record. So..., when I want to update these records with any
changes what is the best approach? I gather from trying and reading
that @publication.update(publication) is no longer an option.

Many thanks in Advance












-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to