no such file to load -- active_support/core_ext/object/try (LoadError) #111

Closed
petertellgren opened this Issue Apr 18, 2012 · 1 comment

Projects

None yet

2 participants

I'm working on updating a 2.3.11 rails app from ruby 1.8 to 1.9 and while I'm at it I decided to try the rails_best_practices gem.

So my system is currently running:
Ruby 1.9.2-p318
rvm 1.12.1
Rails 2.3.11

But when I now start the app or run the commands I end up with the following error.

$ bundle exec rails_best_practices .

.rvm/gems/ruby-1.9.2-p318@ruby19/gems/rails_best_practices-1.9.0/lib/rails_best_practices/core/runner.rb:6:in `require': no such file to load -- active_support/core_ext/object/try (LoadError)
from .rvm/gems/ruby-1.9.2-p318@ruby19/gems/rails_best_practices-1.9.0/lib/rails_best_practices/core/runner.rb:6:in `<top (required)>'
from .rvm/gems/ruby-1.9.2-p318@ruby19/gems/rails_best_practices-1.9.0/lib/rails_best_practices/reviews/use_multipart_alternative_as_content_type_of_email_review.rb:2:in `require'
from  .rvm/gems/ruby-1.9.2-p318@ruby19/gems/rails_best_practices-1.9.0/lib/rails_best_practices/reviews/use_multipart_alternative_as_content_type_of_email_review.rb:2:in `<top (required)>'
.rvm/gems/ruby-1.9.2-p318@ruby19/gems/rails_best_practices-1.9.0/lib/rails_best_practices/reviews.rb:24:in `require'
from .rvm/gems/ruby-1.9.2-p318@ruby19/gems/rails_best_practices-1.9.0/lib/rails_best_practices/reviews.rb:24:in `<top (required)>'
from .rvm/gems/ruby-1.9.2-p318@ruby19/gems/rails_best_practices-1.9.0/lib/rails_best_practices.rb:27:in `require'
from .rvm/gems/ruby-1.9.2-p318@ruby19/gems/rails_best_practices-1.9.0/lib/rails_best_practices.rb:27:in `<top (required)>'
from .rvm/gems/ruby-1.9.2-p318@ruby19/gems/rails_best_practices-1.9.0/bin/rails_best_practices:5:in `require'
from .rvm/gems/ruby-1.9.2-p318@ruby19/gems/rails_best_practices-1.9.0/bin/rails_best_practices:5:in `<top (required)>'
from .rvm/gems/ruby-1.9.2-p318@ruby19/bin/rails_best_practices:19:in `load'
from .rvm/gems/ruby-1.9.2-p318@ruby19/bin/rails_best_practices:19:in `<main>'

I assume it has something to do with the paths since if I run the following command

$ cat .rvm/gems/ruby-1.9.2-p318\@ruby19/gems/activesupport-2.3.11/lib/active_support/core_ext/try.rb

It indeeds shows me the content of the file..

Any suggestions?

Owner

I began to use activesupport from 3.x, I didn't realize try method is in core_ext/try.rb file.

It is already fixed, try the HEAD codes

@flyerhzm flyerhzm closed this Apr 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment