【发布时间】:2016-04-11 04:40:24
【问题描述】:
我正在安装新的 Windows 10 环境以继续开发现有的 Rails API。在bundle install 之后,我需要设置数据库。这是我正在运行的命令,以及带有错误的输出。我不是 Rails 开发人员,只需要运行此 API 即可开始在客户端 JavaScript 上进行黑客攻击。我应该从哪里着手解决这个问题?
$ rake db:setup --trace
rake aborted!
Bundler::GemRequireError: There was an error while trying to load the gem 'responders'.
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
C:/msys64/home/Isaac Lewis/vibragenix-api/config/application.rb:7:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/msys64/home/Isaac Lewis/vibragenix-api/Rakefile:4:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:93:in `load_rakefile'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:77:in `block in run'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:75:in `run'
C:/Ruby22-x64/bin/rake:33:in `<main>'
NameError: uninitialized constant ActionView::Helpers::ActiveModelHelper
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_view/helpers.rb:40:in `<module:Helpers>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_view/helpers.rb:4:in `<module:ActionView>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_view/helpers.rb:3:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_view/base.rb:5:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionview-4.2.1/lib/action_view/view_paths.rb:1:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/abstract_controller/rendering.rb:4:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_controller/base.rb:204:in `<class:Base>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_controller/base.rb:164:in `<module:ActionController>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/actionpack-4.2.1/lib/action_controller/base.rb:5:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/responders-2.1.0/lib/responders/controller_method.rb:37:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/responders-2.1.0/lib/responders.rb:15:in `<module:Responders>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/responders-2.1.0/lib/responders.rb:9:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `require'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `block (2 levels) in require'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
C:/msys64/home/Isaac Lewis/vibragenix-api/config/application.rb:7:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/msys64/home/Isaac Lewis/vibragenix-api/Rakefile:4:in `<top (required)>'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:93:in `load_rakefile'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:77:in `block in run'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
C:/Ruby22-x64/lib/ruby/2.2.0/rake/application.rb:75:in `run'
C:/Ruby22-x64/bin/rake:33:in `<main>'
【问题讨论】:
-
这可能没什么,但是其中有空格的路径在历史上对 Rails 造成了很大的痛苦。我注意到你的路径有你的名字和空格。gist.github.com/KelseyDH/11198922
标签: ruby-on-rails ruby rubygems development-environment