Role という名前のモデルがあります。そして、フォームで以下のヘルパーを使用しています。name 属性の値を別の言語に変更する方法はありますか?
<%= f.collection_select :role_id, Role.all, :id, name, {} -%>
ロケール/de.yml
de:
role:
admin: "something"
editor: "something something"
Role という名前のモデルがあります。そして、フォームで以下のヘルパーを使用しています。name 属性の値を別の言語に変更する方法はありますか?
<%= f.collection_select :role_id, Role.all, :id, name, {} -%>
ロケール/de.yml
de:
role:
admin: "something"
editor: "something something"