2011-01-12 5 views
1

ThinkingTankの宝石を私のレールプロジェクトに取り入れようとしているときに、私は不愉快で奇妙な問題を抱えています。ロードするファイルがありません - レール(MissingSourceFile)...何と言っていますか?

~/.rvm/gems/ree-1.8.7-2010.01/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require': no such file to load -- rails (MissingSourceFile) 
from ~/.rvm/gems/ree-1.8.7-2010.01/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require' 
from ~/.rvm/gems/ree-1.8.7-2010.01/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in' 
from ~/.rvm/gems/ree-1.8.7-2010.01/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require' 
from ~/.rvm/gems/ree-1.8.7-2010.01/gems/thinkingtank-0.0.5/lib/thinkingtank.rb:1 
from ~/.rvm/gems/ree-1.8.7-2010.01/gems/bundler-1.0.7/lib/bundler/runtime.rb:64:in `require' 
from ~/.rvm/gems/ree-1.8.7-2010.01/gems/bundler-1.0.7/lib/bundler/runtime.rb:64:in `require' 
from ~/.rvm/gems/ree-1.8.7-2010.01/gems/bundler-1.0.7/lib/bundler/runtime.rb:62:in `each' 
from ~/.rvm/gems/ree-1.8.7-2010.01/gems/bundler-1.0.7/lib/bundler/runtime.rb:62:in `require' 
from ~/.rvm/gems/ree-1.8.7-2010.01/gems/bundler-1.0.7/lib/bundler/runtime.rb:51:in `each' 
from ~/.rvm/gems/ree-1.8.7-2010.01/gems/bundler-1.0.7/lib/bundler/runtime.rb:51:in `require' 
from ~/.rvm/gems/ree-1.8.7-2010.01/gems/bundler-1.0.7/lib/bundler.rb:112:in `require' 
from ~/git/myproject/config/boot.rb:121:in `load_environment' 
from ~/.rvm/gems/ree-1.8.7-2010.01/gems/rails-2.3.5/lib/initializer.rb:137:in `process' 
from ~/.rvm/gems/ree-1.8.7-2010.01/gems/rails-2.3.5/lib/initializer.rb:113:in `send' 
from ~/.rvm/gems/ree-1.8.7-2010.01/gems/rails-2.3.5/lib/initializer.rb:113:in `run' 
from ~/git/myproject/config/environment.rb:9 
from ~/.rvm/rubies/ree-1.8.7-2010.01/lib/ruby/1.8/irb/init.rb:254:in `require' 
from ~/.rvm/rubies/ree-1.8.7-2010.01/lib/ruby/1.8/irb/init.rb:254:in `load_modules' 
from ~/.rvm/rubies/ree-1.8.7-2010.01/lib/ruby/1.8/irb/init.rb:252:in `each' 
from ~/.rvm/rubies/ree-1.8.7-2010.01/lib/ruby/1.8/irb/init.rb:252:in `load_modules' 
from ~/.rvm/rubies/ree-1.8.7-2010.01/lib/ruby/1.8/irb/init.rb:21:in `setup' 
from ~/.rvm/rubies/ree-1.8.7-2010.01/lib/ruby/1.8/irb.rb:54:in `start' 
from ~/.rvm/rubies/ree-1.8.7-2010.01/bin/irb:17

ruby -vからの出力は次のとおりです:

ruby 1.8.7 (2009-12-24 patchlevel 248) [i686-darwin10.6.0], MBARI 0x6770, Ruby Enterprise Edition 2010.01

そしてrails -vからの出力は次のとおりです。

Rails 2.3.5

私は」私は私のプロジェクトのGemfileにgem 'thinkingtank'が含まれている場合、私は次のエラーを取得します基本的なガイドラインはtheir documentationsimilar SA questionsです。しかし、問題のどれも..

を逃すつもりはレールの宝石を持ってはい、私たちは=私たちのGemfileでレールを含めている)

は、事前にありがとうございません。

+0

お試しください:あなたのgemファイルに 'thinkingtank'が必要です。 –

+0

こんにちはハリー、thinktankは既に要求されていたが、コメントありがとう。 – Julian

答えて

1

私は「require rails」ステートメントを削除するだけで問題を解決しました。問題を引き起こした他の宝石の競合がいくつかありましたが、私はソースに若干の変更を加えて解決することができました。ありがとう!

関連する問題