search for: howtoaddcustomvalidationkeyword

Displaying 2 results from an estimated 2 matches for "howtoaddcustomvalidationkeyword".

2006 Mar 13
3
adding new validates_foo to the models
I was thinking of adding some new validates_foo to my models. How could I create these so that they are reusable in my other apps. Would these need to be plugins? I''m not sure how to go about creating these. Charlie Bowman http://www.recentrambles.com -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Apr 27
4
customize validates_uniqueness_of
I need to modify the validates_uniqueness_of function so that it will check that the string is unique but only in its own category. For example right now I have validates_uniqueness_of :title so let''s say I have the :title "Title 1" already in the database with the :category of "1" then if i wanted to enter the :title "Title 1" in the database again BUT