in AWDwRoR, there is an example for one class being composed of another
class, but mapping to just one db table (table “customers”, model
Customer, composed_of :name).
In my case, the situation looks different: I have one HTML form where
the user enters personal information, and this data spreads across the 2
tables “seller_contact_infos” and “addresses”.
Now the problems are:
a) I would like a different caption for error messages (instead of “this
seller contact info could not be saved”)
b) I need a way to put all potential error messages into just one error
So, if you want to see it this way, the form is composed of models
Address and SellerContactInfo.
Any idea how to handle this situation in an elegant way?