search for: naybodi

Displaying 1 result from an estimated 1 matches for "naybodi".

Did you mean: anybodi
2008 May 07
0
Rspec and validates_existence_of
Hi List I am using validates_existence_of in some of my Model classes. For instance I have the following class: class User < ActiveRecord::Base belongs_to :department validates_existence_of :department end If I create an instance of User in the console and set the department to be one that does not exist in the db, then a call to valid? returns false. However, if I create a