昨晚带着一个功能齐全的应用程序睡觉。我厌倦了 webrick 的性能,决定使用不同的 web 服务器进行开发。我醒来并安装了 Thin。我立即收到错误。我不知道发生了什么,所以我卸载了 Thin 并回到 Webrick 完成一些事情。令我惊讶的是,错误仍然存在!
这是错误:
Started GET "/signin" for 127.0.0.1 at 2012-04-28 11:01:28 -0700
Processing by SessionsController#new as HTML
Rendered sessions/new.html.erb within layouts/application (2.0ms)
Compiled application.js (287ms) (pid 2928)
Completed 500 Internal Server Error in 868ms
ActionView::Template::Error (cannot load such file -- ["ok","(function() {\n\n\n\n}).call(this);\n"]
(in E:/[my app's directory]/app/assets/javascripts/admins.js.coffee)):
13: <meta name="viewport" content="width=1024, maximum-scale=1.0">
14: <%= stylesheet_link_tag "application", :debug => Rails.env.development? %>
15: <%= yield :headercss %>
16: <%= javascript_include_tag "application", :debug => Rails.env.development? %>
17: <%= yield :headerjs %>
18: <%= csrf_meta_tags %>
19: </head>
app/views/layouts/application.html.erb:16:in `_app_views_layouts_application_html_erb__960238137_43581456'
config/initializers/quiet_assets.rb:5:in `call_with_quiet_assets'
Rendered C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
Rendered C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
Rendered C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.3/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.0ms)
我尝试预编译......我遇到了同样的问题。它在我的 javascript_include_tag 上呕吐……这让我发疯。它正在寻找 admins.js.coffee 文件...如果我删除它,它将在下一个 javascript 文件中引发错误。我完全糊涂了,请帮忙!有人帮忙!:D