I found that some of my records from a pre-existing database will
occasionaly not be valid. There is no custom validation code on the class,
but you can do something like:
c = CollectionSession.find 24098
c.valid?
=> false
c.errors.empty?
=> true
What''s odd is that the code in validations.rb looks like it runs the
various
validations, and then just returns c.errors.empty?
Any ideas? It does use a custom table name, and a custom primary key. It is
consistant about which records are labeled invalid.
.adam sanderson
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails