search for: railserrorsfor

Displaying 1 result from an estimated 1 matches for "railserrorsfor".

2007 May 09
1
Custom validation error messages.
Hi all, I have a few questions regarding the error messages which are produced by default. For example, if I have "validates_uniqueness_of" I may get an error message "Surname has already been taken'' What if I want a custom message without prefixing the attribute name? I''ve come across a plugin which allows me to do this: validates_uniqueness_of :name, :message