在ruby 1.9.2上运行的rails 3.0.3应用程序出现了一个奇怪的错误,事实上它还没有运行,因为我得到了以下错误:
ArgumentError (Syck is not missing constant BadAlias!):
Rendered /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (14.4ms)
Rendered /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (19.4ms)是因为红宝石版本吗?或者我怎么解决这个问题?
-稍后编辑:
在ruby1.8.7EE上,我没有这样的错误。
发布于 2011-08-11 08:54:45
在搜索和搜索互联网之后,我开始查看我的应用程序中的所有YAML,并使用:http://yaml-online-parser.appspot.com/验证每个文件,并得到以下错误:
while parsing a flow node
expected the node content, but found ':'
in "<unicode string>", line 147, column 13:
order: [:day, :month, :year]所以一切都是因为yaml的错误。问题在于unicode,似乎它在ruby 1.9.2上与1.8.7中不同。
https://stackoverflow.com/questions/6973566
复制相似问题