Created
September 10, 2015 02:12
-
-
Save YumaInaura/929233c4fe4d5c686f9a to your computer and use it in GitHub Desktop.
Rails: ActiveModel の table_for を i18nに対応させる ref: http://qiita.com/Yinaura/items/403300f663750df81c5e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Human | |
include ActiveModel::Model | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ja: | |
activemodel: | |
attributes: | |
human: | |
name: 名前 | |
gender: 性別 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment