Hello, Is Sequel able to validate an association? I checked the docs and list archives but didn't see an example of this.
For example, if each Photo can have many Tags, I'd like to validate the presence of at least one Tag. Should this just be handled outside the model by trying to instantiate a new Tag object and then checking its tag "name" value (or whatever the attribute is called)? Or is there some way to integrate this with the Photo model such that I can validate the presence of at least one "child" (Tag) object? I don't have a problem with doing it manually, I'm just wondering if Sequel supports this somehow out of the box. Thank you. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
