2010-10-21 66 views
0

我剛安裝了rails 3.0.1,當我嘗試做類似rails server的操作時,我在下面看到了錯誤消息。更改我的應用程序正在使用的版本或導軌

注意第一行說它找不到rails gem 3.0.0.rc: 在任何gem s 資源中都找不到gem'rails(= 3.0.0.rc,runtime)'。 (Bundler :: GemNotFound)

如何讓我的rails3應用程序使用rails 3.0.1?

謝謝,

-p.s.完整的錯誤:

C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/resolver.rb:280:在 resolve': Could not find gem 'rails (= 3.0.0.rc, runtime)' in any of the gem s ources. (Bundler::GemNotFound) from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/resol ver.rb:162:in啓動」 從C: /Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/resol ver.rb:131:在block in resolve' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/resol ver.rb:130:in catch' from C:/ Ruby192/lib/ruby​​/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/resol ver.rb:130:resolve' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/defin ition.rb:153:in從C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0解析' .3/lib/bundler/defin ition.rb:93:specs' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/defin ition.rb:137:in specs_for' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/defin ition.rb:126:requested_specs' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/envir onment.rb:23:in requested_specs' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler/runti me.rb:11:in setup' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.3/lib/bundler.rb:10 0:in設置 ' 從C:/用戶/ soheil /文檔/集錦工作室3工作區/ pakrat-Rails3中/ C onfig /的boot.rb:5:在<top (required)>' from <internal:lib/rubygems/custom_require>:29:in需要' 從 :29:在require' from script/rails:8:in'

回答

1

在你的Gemfile你可以改變這一行:

寶石 '軌道', '3.0.1'

然後運行 捆綁安裝

相關問題