From: Jason Matthew Date: 2007-11-19T12:44:50+09:00 Subject: Re: Checking for uniqueness Pat Maddox wrote: > On Nov 18, 2007 6:18 PM, Jason Matthew wrote: >> >> puts "No new feeds to put in database" >> Posted via http://www.ruby-forum.com/. >> >> > > You can enforce it in the model with > > class Meeting < ActiveRecord::Base > has_many :comments > validates_uniqueness_of :link > end > > Pat Thanks Pat! I can't believe I didnt bother just to validate it. -- Posted via http://www.ruby-forum.com/.