我正在开发 Rails 4(使用候选发布版)项目,现在需要与 Windows 机器上的某人协作。但是,我什至无法启动基本网页:(。即使使用 Ruby 2.0 安装 sqlite3 也很痛苦。现在,当我尝试启动网页时(我刚刚创建了一个虚拟 /home/index 控制器并查看),我收到此错误:
Showing C:/Users/me/RubymineProjects/test_project/app/views/layouts/application.html.erb where line #6 raised:
(in C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/turbolinks-1.1.1/lib/assets/javascripts/turbolinks.js.coffee)
Extracted source (around line #6):
3 <head>
4 <title>TestProject</title>
5 <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
6 <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
7 <%= csrf_meta_tags %>
8 </head>
9 <body>
Rails 4 还没有为 Windows 做好准备吗?使用 Ruby 2.0.0p195。
更新:根据@szines 的要求,这是网页输出
http://localhost:3000/rails/info/properties:
Ruby version 2.0.0 (x64-mingw32)
RubyGems version 2.0.3
Rack version 1.5
Rails version 4.0.0.rc1
JavaScript Runtime JScript
Active Record version 4.0.0.rc1
Action Pack version 4.0.0.rc1
Action Mailer version 4.0.0.rc1
Active Support version 4.0.0.rc1
Middleware
ActionDispatch::Static
Rack::Lock
#<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x000000036b85c0>
Rack::Runtime
Rack::MethodOverride
ActionDispatch::RequestId
Rails::Rack::Logger
ActionDispatch::ShowExceptions
ActionDispatch::DebugExceptions
ActionDispatch::RemoteIp
ActionDispatch::Reloader
ActionDispatch::Callbacks
ActiveRecord::Migration::CheckPending
ActiveRecord::ConnectionAdapters::ConnectionManagement
ActiveRecord::QueryCache
ActionDispatch::Cookies
ActionDispatch::Session::CookieStore
ActionDispatch::Flash
ActionDispatch::ParamsParser
Rack::Head
Rack::ConditionalGet
Rack::ETag
Warden::Manager
Application root C:/Users/me/RubymineProjects/test_project
Environment development
Database adapter sqlite3
Database schema version 20130523073322