我想使用I18n,我已经遵循如何做到这一点从railscast
但事情疯了,我不知道错在哪里,试图检查格式,尝试了几种方法,但仍然可以不行。错误I18n :: InvalidLocaleData
我en.yml
en:
category:
index:
title: "Listing Categories"
name: "Name"
is_active: "Is Active"
我view
<%= t 'category.index.title' %>
但返回I18n::InvalidLocaleData in Categories#index
和can not load translations from /home/lenovo/cost_control/config/locales/en.yml, expected it to return a hash, but does not
我曾尝试对我的en.yml
刚:
en:
title: "Listing Categories"
,可以完美地工作,但是当我增加更多的线路,只返回我的错误。对不起,我只是没有那么高级,但感谢你们的帮助:真的。
完成检查[此问题](http://stackoverflow.com/questions/12286099/rails-console-fails-to-start-with-error-from-i18n) – ksugiarto 2013-03-11 05:40:16
而且[this](http:///stackoverflow.com/questions/13123406/gem-spree-i18n-throws-error-on-server-startup-can-not-load-translations) – ksugiarto 2013-03-11 05:40:40