问题描述
这个问题与 Neil Hoff的帖子类似.几天前.我使用Helicon Zoo的ruby软件包下载了Ruby On Rails.我正在Windows 7上使用IIS Express& WebMatrix.
This question is similar to that of Neil Hoff's post from a few days ago.I downloaded Ruby On Rails using Helicon Zoo's ruby package. I am running this on Windows 7 using IIS Express & WebMatrix.
就像,当我浏览该站点时遇到的另一个问题,我得到以下信息:
Like, the other question when I browse to the site, I am getting the following:
[tid-12570000] paths need to start with / (ArgumentError)
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rack-1.3.6/lib/rack/urlmap.rb:33:in `block in remap'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rack-1.3.6/lib/rack/urlmap.rb:25:in `each'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rack-1.3.6/lib/rack/urlmap.rb:25:in `map'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rack-1.3.6/lib/rack/urlmap.rb:25:in `remap'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rack-1.3.6/lib/rack/urlmap.rb:18:in `initialize'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:128:in `new'
C:/Ruby19/lib/ruby/gems/1.9.1/gems/rack-1.3.6/lib/rack/builder.rb:128:in `to_app'
C:/ZooExpress/Workers/ruby/lib/app.rb:45:in `build_app'
C:/ZooExpress/Workers/ruby/lib/app.rb:16:in `initialize'
C:/ZooExpress/Workers/ruby/lib/worker.rb:4:in `new'
C:/ZooExpress/Workers/ruby/lib/worker.rb:4:in `initialize'
C:/ZooExpress/Workers/ruby/zoorack.rb:30:in `new'
C:/ZooExpress/Workers/ruby/zoorack.rb:30:in `<module:Zack>'
C:/ZooExpress/Workers/ruby/zoorack.rb:12:in `<main>'
我知道Windows上的RoR并没有很大的支持者,但是在过去的两天中一直在寻找解决方案,并且通过google,唯一与远程相关的文本似乎是上面提到的另一个SO问题,而没有答案.任何人有任何想法吗?
I know that RoR on Windows does not have a big following, but have searched for the past 2 days for a solution to this, and via google, the only remotely related text seems to be the other SO question referred to above without an answer.Anyone got any ideas?
推荐答案
请从提要中将Helicon Zoo Module升级到1.0.0.47或更高版本.只需转到Zoo-> Modules,然后重新安装即可.
Please upgrade Helicon Zoo Module from the feed to the version 1.0.0.47 or higher. Just go to Zoo -> Modules and install it again.
这篇关于路径需要以/(ArgumentError)开头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!