Showing error messages for two models as one heading

I have two models Program and PointOfContact and here is their

Program belongs_to PointOfContact
PointOfContact has one Program

There is a single form to input a program and it’s associated point of
contact information. The default behaviour in Rails seeems to be to show
two different error messages (boxes) on the top of the form if there are
validation errors in both models. Is there anyway to override that to
show just one error message heading e.g.

Program could not be saved because of errors

Program name is blank.
Point of Contact phone number is blank.



This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs