Gil*_*man 7 ruby ruby-on-rails
当应用程序区域设置设置为:he时,以下自动生成的代码将引发异常:
undefined method `map' for "translation missing: he.date.order":String
<%= f.date_select :birthday %>
Run Code Online (Sandbox Code Playgroud)
我仔细检查过,不仅希伯来语和英语的语言环境相同(按键),英语语言环境文件不包括en.date.order.
这个例外可以从哪里来?
我使用的是Ruby 2带Rails 4.
编辑: 解决方案:
he:
date: #Throws an exception otherwise.
order:
- "year"
- "month"
- "day"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1659 次 |
| 最近记录: |