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?
--
Posted via http://www.ruby-forum.com/.
But I have called require in employee controller
Is that any problem?
But the error messages twice in only testing , production
Error messages are fine in development mode
try production mode?
maybe calling 'require_dependency' instead of 'require' would help?