我刚刚将Rails应用程序从开发移动到了部署服务器。
我已经安装了乘客,但是我想尝试使用rails s
来确保一切运行正常(这是我第一次开发和部署Rails应用程序)。
规格如下:带有RVM的Ruby 1.9.3,mod_passenger,Rails 3.2.3。所有安装正确,并且我还启用了Apache模块。顺便说一句,出了点问题(乘客不断说“错误消息:未知键:类”。)
运行rails s
会给出上面dump format error for symbol(0x45)
所列的奇怪错误
Processing by Devise::SessionsController#new as HTML
Rendered devise/_links.haml (2.2ms)
Rendered devise/sessions/new.html.haml within layouts/application (11.8ms)
Completed 500 Internal Server Error in 110ms
ActionView::Template::Error (dump format error for symbol(0x45)):
8: / HTML5 shim, for IE6-8 support of HTML elements
9: /[if lt IE 9]
10: = javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
11: = stylesheet_link_tag "application", :media => "all"
12: /%link(href="images/favicon.ico" rel="shortcut icon")
13: /%link(href="images/apple-touch-icon.png" rel="apple-touch-icon")
14: /%link(href="images/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72")
app/views/layouts/application.html.haml:11:in `_app_views_layouts_application_html_haml__3524679841439843142_22055600'
这是什么意思?谷歌搜索似乎是flash []错误,但我真的不明白该怎么办。
等待一些建议,谢谢!
最佳答案
有同样的问题。尝试删除您的[app] / tmp目录。它似乎正试图解码某些异常文件。