0

Error message is:

MissingSourceFile in QuotesController#accept

no such file to load -- echo_sign

/Users/martin/.rbenv/versions/1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/Users/martin/.rbenv/versions/1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/Users/martin/.rbenv/versions/1.8.7-p374/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `require'
/Users/martin/.rbenv/versions/1.8.7-p374/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:547:in `new_constants_in'
/Users/martin/.rbenv/versions/1.8.7-p374/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `require'
/Users/martin/Desktop/[project_name]/app/controllers/quotes_controller.rb:182:in `accept'

This error occurred while loading the following files:
   echo_sign

In my controller I have:

require 'echo_sign'

My project was using ruby 1.8.7 but the gem above required 1.9.3 so I updated the ruby version of my project by first installing the newer version and then setting it locally and running rbenv rehash

rbenv local : 1.9.3-p448
rbenv global : 2.0.0-p0

ruby-v : ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.4.0]

Yet the app seems to be looking in the wrong version folder for the gem, any ideas?

martincarlin87
  • 10,848
  • 24
  • 98
  • 145

0 Answers0