我是一名 RoR 初学者,我从 RoR 教程开始学习它。实际上我在本章(http://ruby.railstutorial.org/chapters/static-pages#top)并尝试安装rspec。但是每次当我尝试使用“rails g rspec:install”时,我都会收到以下错误消息:
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。