In validations, one can add a custom error message:
class
Person < ActiveRecord::Base
``def
a_method_used_for_validation_purposes
``errors.add(``:name``, ``"cannot contain the characters !@#%*()_-+="``)
``end
end
How wil this message be translated when using I18n? Can a key be passed instead of a message?
Cheers, ace