Topic: Active Record error messages double? (i.e twice)
Hi Friends
I have two below classes
class Employee< ActiveRecord::Base
validates_presence_of :name,
........
end
other
class AuditObserver < ActiveRecord::Observer
observe Employee
........
end
But when we are creating the Employee record form create view
All predefined error messages are twice
Means validation error
# Name can't be blank
# Name can't be blank
Could please give any advice on it ? Why the error messages are Double?