2012-02-06 40 views
1

它是一個suspecius問題,但我面對它,並堅持到它。未定義的局部變量或方法`索引'爲#<Bundler :: Definition

每件事情都正常工作,一旦我註銷並登錄回我的系統,沒有任何工作在我的系統上的rails3.1。在每個應用程序,它拋出相同的錯誤:

/home/nazar2/.rvm/gems/[email protected]/gems/bundler-1.0.21/lib/bundler/definition.rb:151:in `resolve': undefined local variable or method `index' for #<Bundler::Definition:0x97a48d4> (NameError) 
    from /home/nazar2/.rvm/gems/[email protected]/gems/bundler-1.0.21/lib/bundler/definition.rb:90:in `specs' 
    from /home/nazar2/.rvm/gems/[email protected]/gems/bundler-1.0.21/lib/bundler/definition.rb:135:in `specs_for' 
    from /home/nazar2/.rvm/gems/[email protected]/gems/bundler-1.0.21/lib/bundler/definition.rb:124:in `requested_specs' 
    from /home/nazar2/.rvm/gems/[email protected]/gems/bundler-1.0.21/lib/bundler/environment.rb:23:in `requested_specs' 
    from /home/nazar2/.rvm/gems/[email protected]/gems/bundler-1.0.21/lib/bundler/runtime.rb:11:in `setup' 
    from /home/nazar2/.rvm/gems/[email protected]/gems/bundler-1.0.21/lib/bundler.rb:110:in `setup' 
    from /home/nazar2/.rvm/gems/[email protected]/gems/bundler-1.0.21/lib/bundler/setup.rb:7:in `<top (required)>' 
    from /home/nazar2/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require' 
    from /home/nazar2/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require' 
    from /home/nazar2/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require' 
    from /home/backup/Hub/clients/orthomind/new/orthomind/config/boot.rb:6:in `<top (required)>' 
    from <internal:lib/rubygems/custom_require>:29:in `require' 
    from <internal:lib/rubygems/custom_require>:29:in `require' 
    from script/rails:5:in `<main>' 

我卡在它,不能找出問題是什麼。

請幫我一把。

回答

2

剛剛更新爲bundler寶石,每件事情都很好。

gem install bundler --pre 

我覺得有一些問題與以前的捆綁寶石版本Rails3.1

相關問題