search for: children_with_potential_errors

Displaying 1 result from an estimated 1 matches for "children_with_potential_errors".

2006 Jun 09
0
validated_associated -- how do I assign invalid collection?
...ciated'' on a number of other classes, is it supposed to be relatively easy to replace a collection of them? Not to overwrite them in the DB, but simply to assign them to their retrieval method, so that they can be included as part of the owning class'' validation. I mean like: children_with_potential_errors = Child.update(params[:child].keys, params[:child].values) parent.children = children_with_potential_errors if parent.update_attributes(params[:parent]) ... else ... end I have a class like Parent above, that has three collections (one-to-many) like Child above, yet I am having a very dif...