In the book 'The Rails Way', Obie Fernandez discusses keeping active- record validation code within a database and then applying those validations conditionally based upon certain attributes of the model.
I had a similar requirement recently, before reading the book and ended up writing my own hand-rolled validator. This was quite painful and not as powerful as the built in ActiveRecord validations. Does any one have any info/links to posts etc that would give me a headstart on how to achieve conditional AR validations with the validation code stored in a database? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

