2012-12-04 252 views
9

我目前正在將我的應用程序從rails 2.3升級到3.0和ruby 1.9.3。進行必要的更改並嘗試訪問我的應用程序的主頁後,出現以下錯誤。Rails 3 yaml錯誤

Psych::SyntaxError ((/apps/myapp/config/locales/en.yml): did not find expected node  content while parsing a flow node at line 73 column 14): 
/usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/psych.rb:203:in `parse' 
/usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/psych.rb:203:in `parse_stream' 
/usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/psych.rb:151:in `parse' 
/usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/psych.rb:127:in `load' 
/usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/psych.rb:297:in `block in load_file' 
/usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/psych.rb:297:in `open' 
/usr/local/rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/psych.rb:297:in `load_file' 

完整的堆棧跟蹤,可以發現:http://pastie.org/5478123

線沒有en.yml 73包含

order: [:year, :month, :day] 

有人可以幫我解決這個。目前myapp運行在Rails 2.3.14和Ruby 1.8.7上

回答