Rails Active Record translation: Automatic Uppercase / Lowercase?

In accordance with the default wording, he himself, in some cases, the user model will be displayed as "user" (in lower case), as in "3 errors that prohibit this user to save", and in some cases as "User" (uppercase) (as in the form of a nested model: the username cannot be empty). It should be applied to another Latin language, right? How can I specify a model name conversion so that Rails (active record?) Displays it in lowercase or uppercase, depending on the context (as above)?

+6
source share

Source: https://habr.com/ru/post/896068/


All Articles