How is it possible that the model validation errors messages are getting duplicated in ruby on rails application?
Asked
Active
Viewed 1,487 times
0

Mr Lister
- 45,515
- 15
- 108
- 150

Bogdan Gusiev
- 8,027
- 16
- 61
- 81
-
3The reasons could be many and various I suspect. It would be worth giving more of an example of what you are doing, what your validation messages are and under what circumstances you are seeing the duplication. – Shadwell Aug 03 '09 at 13:06
2 Answers
7
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
- 11,062
- 7
- 33
- 35