search for: _combination_

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

Did you mean: _combinations_
2006 Mar 26
9
validate_uniqueness_of {combination of fields} ???
...validates documentation and it appears that validates_uniqueness_of works on only one field at a time. So I can, for example, validate that "sam" is unique to the record set, and that "smith" is unique to the record set. My problem is that each record includes two fields, the _combination_ of which must be unique to the record set, but each of which may not be unique. So "sam smith", "mary smith" and "sam jones" (stored as fname, lname) all need to pass the validation. Is there an easy way to validate_uniqueness_of a combination of fields within a reco...
2004 Jun 22
8
Tracking Mouse motion
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: tst_wxPaint.rbw Type: application/octet-stream Size: 4446 bytes Desc: not available Url : http://rubyforge.org/pipermail/wxruby-users/attachments/20040622/abc8ba85/tst_wxPaint-0001.obj