Hi All.. I am new to ruby on rails.I want set the unquie on two fields. Means in one model three fileds are there. 1.Id, 2.C-id 3.Q-id I want set the unquie on C-Id,Q-Id combindely on the model validations Can u give me advice? I tryed with statemwnt validates_uniqueness_of [:c_id, :qid] But it now giving the proper results Regards, Ramya -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---