Thanks for the clarification. I wasn't actually planning on setting errors outside of the class definition. I just used that because it seemed like the simplest example.
I was planning on setting a property based on some other properties and a conditions hash stored in another model. The method I was going to write would then add an error if 0 possibilities were found and a different error if more than 1 possibility was found. I noticed an earlier discussion about dynamic messages which would probably do the trick, too. No problem, I'll just use validates_present and add a catch-all message. Thanks for your help. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DataMapper" 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/datamapper?hl=en -~----------~----~----~----~------~----~------~--~---
