paperclip plugin not support for I18n
Posted
by user354413
on Stack Overflow
See other posts from Stack Overflow
or by user354413
Published on 2010-06-08T07:59:52Z
Indexed on
2010/06/08
8:02 UTC
Read the original article
Hit count: 180
ruby-on-rails-plugins
|paperclip
I've added I18n support for error messages:
Now you can define translations for the errors messages in e.g. your YAML locale file:
en: paperclip: errors: attachment: size: "Invalid file size" content_type: "Unsupported content type" presence: "Cant' be blank"
when I use validates_attachemnt_zie :avatar
how to get error message?
© Stack Overflow or respective owner