Better validates_associated method for Rails 3?

Viewed 8987

Rails 3 includes the validates_associated which is automatically called when saving a nested model. The problem with the method is the message is terrible - "Model(s) is invalid"

There have been a few posts attacking this issue for Rails 2:

and there are probably more. It would be great to have a better version as described in these posts that is Rails 3 compatible. The main improvement would be to include why the associated model fails.

4 Answers
Related