I have 2 models: Applicants and Comments. Applicants has_many
Comments and Comments belongs_to Applicant.
If I add validation to my Applicants model (for example,
"validates_presence_of :first_name") and edit the applicants page, I
get a Nil Object error if I remove the first_name before saving. In
this case I would expect to see the "there was 1 error that
prevented..." error message. I do get this message during Applicant
creation.
The strange part is that the error I do get points to my comments
display. Everything works as expected. Why would it behave this way?