ruby - Rails I18n errors parsing simple YAML file -
i'm starting use rails i18n basic task , i'm getting confusing error message:
can not load translations c:/sites/usrochr/config/locales/en.yml: #<psych::syntaxerror: (c:/sites/usrochr/config/locales/en.yml): couldn't parse yaml @ line 5 column 2>
my yaml file [very basic] config/locales/en.yml [i don't see syntax error]:
en: users: title: "this english"
and code calling in views/users/index.html.erb file simple :
<hr><%= t "users.title" %><hr>
fyi -i running ruby 1.9.3 , rails 3.2.7. not sure have gone astray.....
i said comment, re-post question might marked solved:
yaml parsed using whitespaces, hence there should no tabs in there (afaik should work tabs - no mixes though)
Comments
Post a Comment