Displaying 1 result from an estimated 1 matches for "validates_line_item".
Did you mean:
validates_line_items
2006 Dec 11
2
Custom Validator
I want to add a custom validator in one of Model. For example Rails has
inbuilt validation methods like validates_uniqueness_of,
validates_presence_of . What I need is a similar kind of method
(example: validates_line_items), that can run my custom code while
saving, updating the record and can add custom error messages to the
record. Please help me by suggesting how i can do this.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you...