我刚刚把我的Rails应用从开发环境移植到了部署服务器上。我已经安装了Passenger,但是我想尝试使用rails s
来确保一切都运行正常(这是我第一次开发和部署Rails应用程序)。
规格为:Ruby 1.9.3 with RVM、mod_passenger、Rails 3.2.3。所有的东西都安装正确了,我也启用了Apache模块。不过有些东西出了问题(passenger一直显示“错误消息:未知键:class”)。
运行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[] 错误,但我真的不明白我应该在这里做什么。
等待一些建议,谢谢!