If a model has an attribute named “unit” for example, but in your views you refer to this attribute as “unit price”, but when you do validation, error messages default to “unit”, how do I modify this to say “unit price”?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use localization to set the “English” name of your attribute. You can set both the singular and plural names: