views:

279

answers:

2

How is it possible that the model validation errors messages are getting duplicated in ruby on rails application?

+2  A: 

One area where I have found that duplication of validation error message occurs is when using plugins like Authlogic or Clearance which handle authentication. Often they have their own validations which also run alongside your validations inside your models. Carefully looking at the API and RDoc for these plugins will reveal how to suppress these messages or customise them.

Hope that helps.

Gav
A: 

Any chance you are calling valid? in addition to save?

austinfromboston