0
我創建了一個新的Rails項目目錄,並且我剛剛編輯了.gem文件;我正在邁克爾哈特爾的教程中工作。我現在已經修改了.gem文件。它在我的命令提示符下運行的'rails generate rspec:install'旁邊聲明;然而,它現在給我以下錯誤:錯誤生成RSpec
/Users/coreymkimball/Canvi/Projects/TheCanvi.com/RoR/The_Canvi/config/initializers/secret_token.rb:27:in `<top (required)>': uninitialized constant The_Canvi (NameError)
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/railties-4.0.0/lib/rails/engine.rb:609:in `block (2 levels) in <class:Engine>'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/railties-4.0.0/lib/rails/engine.rb:608:in `each'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/railties-4.0.0/lib/rails/engine.rb:608:in `block in <class:Engine>'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `run'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/railties-4.0.0/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/coreymkimball/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /Users/coreymkimball/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /Users/coreymkimball/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
from /Users/coreymkimball/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /Users/coreymkimball/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:209:in `block in each_strongly_connected_component_from'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `each'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `tsort_each_child'
from /Users/coreymkimball/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
from /Users/coreymkimball/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /Users/coreymkimball/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /Users/coreymkimball/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /Users/coreymkimball/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/railties-4.0.0/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/railties-4.0.0/lib/rails/application.rb:215:in `initialize!'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/coreymkimball/Canvi/Projects/TheCanvi.com/RoR/The_Canvi/config/environment.rb:5:in `<top (required)>'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/railties-4.0.0/lib/rails/application.rb:189:in `require'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/railties-4.0.0/lib/rails/application.rb:189:in `require_environment!'
from /Users/coreymkimball/.rvm/gems/[email protected]_rails_4_0/gems/railties-4.0.0/lib/rails/commands.rb:45:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
任何人都可以幫忙嗎?
謝謝,男人;這真是太棒了 - 非常感謝反饋。 – user2698988