From: Frank Tsao Date: 2008-04-14T01:16:42+09:00 Subject: Re: How to check record duplication before saving? Thank you everyone, I have found out the solution which is "validates_uniqueness_of". The statement as below, validates_uniqueness_of :A, :scope => :B Frank -- Posted via http://www.ruby-forum.com/.