I have a model with some validations (validates_associated, validates :numericality and validate :my_own_fn). How can I specify error messages for this validation? Of course I can add :message => :my_message in validatates and then specify my_message in locales, but can I do smth like
en:
activerecord:
errors:
models:
user:
email_invalid: "Email is invalid."
Looks like you’re almost there. Have a look at official guide on i18n here. According to it your message should be in a bit different place: