Posts by Mauro Murari • 13 points
2 posts
-
0
votes2
answers686
viewsA: Rails 4 translated error messages, change model name and attributes
Since I am using Mongoid, activerecord should not be used, so the code is as follows: pt-BR: mongoid: models: user: one: "Usuário" other: "Usuários" attributes: user: name: "Nome" email: "E-mail"…
-
1
votes2
answers686
viewsQ: Rails 4 translated error messages, change model name and attributes
Hello, I’m starting in Rails and I’m picking up to handle error messages in en-BR. I am using Mongodb/Mongoid for the database layer. I own a model user, with attributes name, email and password. I…