2012-08-13 5 views
0

지역화 YML 파일이 의미 페이지 "(/home/alex/RubymineProjects/psg/config/locales/es.yml): did not find expected key while parsing a block mapping at line 248 column 7"에 오류가 발생합니다 몇 가지 이유를 들어 * .yml현지화 : * .yml 파일의 중첩 된 값은

errors: 
    template: 
     body:  "Body error message" 
     header: 
      one: "1 error " 
      other: "%{count} errores" 

거기에 뭔가 문제가있다.

"Body error message" (값만, body이 아닌 값)을 삭제하면 모든 것이 좋으며 페이지에 오류가 없습니다.

무엇이 잘못 되었나요? 키 body을 값과 중첩 값으로 정의하려면 어떻게해야합니까?

답변

1

귀하의 들여 쓰기가 잘못 :

errors: 
    template: 
    body:  "Body error message" 
    header: 
     one: "1 error " 
     other: "%{count} errores" 
: bodyheader 같은 깊이에 있어야
관련 문제