Forum: Ruby on Rails Validation relative to other attributes

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
David C. (Guest)
on 2006-02-20 01:15
(Received via mailing list)
I have an object O with two 'collections'.  The minimum size for B is
+ 1.

Also, B has to be a proper subset of A.

What is the correct way to validate B?

Tom M. (Guest)
on 2006-02-20 01:24
(Received via mailing list)
In a custom validate method.

-- Tom M.
This topic is locked and can not be replied to.