運行:紅寶石1.9.3p0使用Rails 3.2.1「軌生成RSpec的:安裝」似乎沒有
嘗試使用rspec的,但是當我嘗試把它安裝到我的應用程序,我得到以下錯誤:
/Users/Si/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.1/lib/rails/railtie/configuration.rb:85:in `method_missing': undefined method `generators' for #<Rails::Railtie::Configuration:0x00000101b2f1b8> (NoMethodError)
from /Users/Si/.rvm/gems/ruby-1.9.3-p0/gems/rspec-rails-2.0.0.beta.18/lib/rspec-rails.rb:4:in `<class:Railtie>'
from /Users/Si/.rvm/gems/ruby-1.9.3-p0/gems/rspec-rails-2.0.0.beta.18/lib/rspec-rails.rb:3:in `<module:Rails>'
from /Users/Si/.rvm/gems/ruby-1.9.3-p0/gems/rspec-rails-2.0.0.beta.18/lib/rspec-rails.rb:2:in `<module:RSpec>'
from /Users/Si/.rvm/gems/ruby-1.9.3-p0/gems/rspec-rails-2.0.0.beta.18/lib/rspec-rails.rb:1:in `<top (required)>'
from /Users/Si/.rvm/gems/[email protected]/gems/bundler-1.0.22/lib/bundler/runtime.rb:68:in `require'
from /Users/Si/.rvm/gems/[email protected]/gems/bundler-1.0.22/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /Users/Si/.rvm/gems/[email protected]/gems/bundler-1.0.22/lib/bundler/runtime.rb:66:in `each'
from /Users/Si/.rvm/gems/[email protected]/gems/bundler-1.0.22/lib/bundler/runtime.rb:66:in `block in require'
from /Users/Si/.rvm/gems/[email protected]/gems/bundler-1.0.22/lib/bundler/runtime.rb:55:in `each'
from /Users/Si/.rvm/gems/[email protected]/gems/bundler-1.0.22/lib/bundler/runtime.rb:55:in `require'
from /Users/Si/.rvm/gems/[email protected]/gems/bundler-1.0.22/lib/bundler.rb:122:in `require'
from /Users/Si/dropbox/sh_rails_projects/test_app/config/application.rb:13:in `<top (required)>'
from /Users/Si/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.1/lib/rails/commands.rb:24:in `require'
from /Users/Si/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.1/lib/rails/commands.rb:24:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
我對rails和ruby很新,所以這對我來說幾乎沒有任何意義,任何人都可以解釋。
感謝
你在'Gemfile'中有什麼? – James 2012-02-11 00:04:54