Skip to content

Instantly share code, notes, and snippets.

@YumaInaura
Created September 10, 2015 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YumaInaura/929233c4fe4d5c686f9a to your computer and use it in GitHub Desktop.
Save YumaInaura/929233c4fe4d5c686f9a to your computer and use it in GitHub Desktop.
Rails: ActiveModel の table_for を i18nに対応させる ref: http://qiita.com/Yinaura/items/403300f663750df81c5e
class Human
include ActiveModel::Model
end
ja:
activemodel:
attributes:
human:
name: 名前
gender: 性別
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment