tenstates, > 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.
The call @publication.update(publication) should work fine in most cases. Resource#update is part of the public API and will be part of DM 1.0. It should work fine with nested objects. It's hard to tell what you're trying to do from the example you provided though. Would you be able to provide a small stand-alone script that reproduces the issue you are seeing? -- Dan (dkubb) -- 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.
