脚本/服务器无法正常工作。执行该命令时,它显示以下错误

时间:2013-04-17 18:04:32

标签: ruby-on-rails ruby

/home/vinay/mynewapp/vendor/rails/railties/lib/rails/gem_dependency.rb:21:in `add_frozen_gem_path': undefined method `source_index' for Gem:Module (NoMethodError)
    from /home/vinay/mynewapp/config/boot.rb:47:in `load_initializer'
    from /home/vinay/mynewapp/config/boot.rb:38:in `run'
    from /home/vinay/mynewapp/config/boot.rb:11:in `boot!'
    from /home/vinay/mynewapp/config/boot.rb:114:in `<top (required)>'
    from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
    from /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
    from script/server:2:in `<main>'

1 个答案:

答案 0 :(得分:0)

您是否尝试过rails server

较短版本:rails s甚至r s