在我看來,我有:Rails的國際化date_select錯誤
<%= f.date_select :start %>
,我得到的錯誤信息:can't convert Symbol into String
我知道它涉及到it.date.order
規則,但我看到rails-i18n
包括它: https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/it.yml#L51
這裏有什麼問題?
完全回溯:https://gist.github.com/4007557
編輯:在控制檯運行I18n.t 'date.order'
給我=> [:day, :month, :year]
。這是正確的......那麼爲什麼date_select
不起作用?在GitHub回購
問題:https://github.com/svenfuchs/rails-i18n/issues/273
從我的記憶中也可以確定。 –
在我的'配置/區域設置/ it.yml'我有'的ActiveRecord: 屬性: 項目: 開始:Inizio 站:Fine' 和使用'噸(:開始)'我得到'未定義的方法的開始'for#' –
enricostn
如果使用't(activerecord.attributes.project.start)''我得到'undefined method'Inizio 'for Project' – enricostn