Posts by Rennan Ribeiro • 21 points
2 posts
-
1
votes2
answers971
viewsA: i18 - How to translate attributes in error messages
Hey, the solution was simple: in: config/locales/en.yml pt-BR: ... ... activerecord: attributes: user: address: state_id: 'Estado' city_id: 'Cidade' name: 'Nome' ... ... I hope it helps.…
-
1
votes2
answers971
viewsQ: i18 - How to translate attributes in error messages
Friends I have something like this: user.Rb: class User < ActiveRecord::Base has_one :address, autosave: true, dependent: :destroy accepts_nested_attributes_for(:address, update_only: true,…