Have you guys noticed that conditional validation with validates_associated does not work well when you are creating a new record?
Consider this gist: https://gist.github.com/aflag/4780225
The Lawyer class has validates_associated on address conditioned on whether the Lawyer data comes from a known source or not. So, if lawyer.source equals to some string, then lawyer.address must not be validated. However, if I’m trying to create a new record, it is validated regardless of whether source is nil or not. Is it expected to behave like that? Is that a bug?