我想在带有 Rails 3.2 的 Windows 上尝试 jruby 1.7.0.RC2。我能够启动服务器,但每次我尝试访问需要 css (javascript_include_tag) 的页面时,都会收到以下错误:
invalid encoding in marshaling stream: I"co
这是堆栈跟踪,如果有帮助的话:
ActionView::Template::Error (invalid encoding in marshaling stream: I"◄co):
9: = stylesheet_link_tag "application", :media => "all"
app/views/layouts/application.html.haml:9:in `_app_views_layouts_application_h
tml_haml__357561048_13162'
Rendered C:/jruby-1.7.0.RC2/lib/ruby/gems/shared/gems/actionpack-3.2.8/lib/act
ion_dispatch/middleware/templates/rescues/_trace.erb (7.0ms)
Rendered C:/jruby-1.7.0.RC2/lib/ruby/gems/shared/gems/actionpack-3.2.8/lib/act
ion_dispatch/middleware/templates/rescues/_request_and_response.erb (6.0ms)
Rendered C:/jruby-1.7.0.RC2/lib/ruby/gems/shared/gems/actionpack-3.2.8/lib/act
ion_dispatch/middleware/templates/rescues/template_error.erb within rescues/layo
ut (41.0ms)
我的 application.css 只是默认资产管道的结果,没什么特别的。我什至在一个空的 application.css.scss 文件中遇到同样的错误......
Ruby MRI 1.9.2 和 1.9.3 一切正常。
我必须说,在编码方面,我一无所知。任何想法?