search for: has_xxx

Displaying 2 results from an estimated 2 matches for "has_xxx".

Did you mean: has_mux
2011 Apr 07
0
accepts_nested_attributes_for, validations, :inverse_of option on associations, and IdentityMap
...on one of the child models which needed to be conditional on an attribute in the parent model. We realized that on a save, the child was fetching the parent from the database, and so was seeing the old value in the parent. This led me to the discovery of the :inverse_of option on :belongs_to and :has_xxx associations. Adding this option to both ends of the associations in question fixed the problem of the validation not triggering, and that''s when we noticed a second problem. Lets say we enter a value for an attribute of one of the child models, and validation of the parent fails. Using t...
2006 Apr 21
2
me.defeated!
Good afternoon (as appropriate ; ) I''m having a problem and thought I''d run it past these forums to see if there even was a reasonable solution to it. I''m trying to set up a rails application to pull data from a legacy database. The trick is, that the database really wasn''t created with RoR convention over configuration in mind. The trick is that every