我是一个RoR初学者,我开始使用RoR-Tutorial学习它。 其实我在本章(http://ruby.railstutorial.org/chapters/static-pages#top)并尝试安装rspec。但每次当我尝试使用“rails g rspec:install”时,我收到以下错误消息:rails生成rspec:install - 没有这样的文件加载--sprockets/railtie(LoadError)
C:\Sites\rails\rails_projects\sample_appp>rails g rspec:install
C:/Sites/rails/rails_projects/sample_appp/config/application.rb:8:in `require':
no such file to load -- sprockets/railtie (LoadError)
from C:/Sites/rails/rails_projects/sample_appp/config/application.rb:8:i
n `<top (required)>'
from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/railties-3.0.9
/lib/rails/commands.rb:15:in `require'
from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/railties-3.0.9
/lib/rails/commands.rb:15:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
有没有人想法帮助我?我已经尝试在application.rb中注释它或者在gemfile中明确提及它。但我仍然收到此错误消息。
如果有人能帮助我,那会很棒。顺便说一句。我的操作系统是Windows XP,我正在使用Ruby版本1.9.2.p290和Rails版本3.1.0.rc6。
Rails 3.1尚不稳定,你应该降级到rails 3.0.x – apneadiving
如果你刚刚学习,你应该继续前进使用3.1。它对于学习来说是非常稳定的,并且可能会在你准备用任何东西进行生产之前发布。实际上,我已经用一些简单的3.1应用程序投入了生产,它们工作的很好 - 关键是测试,测试和测试。 – jdc