diff --git a/rails-i18n.md b/rails-i18n.md index 4ef2f841d..6b9a3d0a6 100644 --- a/rails-i18n.md +++ b/rails-i18n.md @@ -96,14 +96,11 @@ en: ## ActiveRecord -### Attributes - +### Models ```rb User.model_name.human #=> "User" Child.model_name.human(count: 2) #=> "Children" -User.human_attribute_for :name #=> "Name" ``` -{:.light} ```yml en: @@ -113,6 +110,18 @@ en: child: one: "Child" other: "Children" +``` + +### Attributes + +```rb +User.human_attribute_for :name #=> "Name" +``` +{:.light} + +```yml +en: + activerecord: attributes: user: # activerecord.attributes..