You may fall down into the situation where you don’t have RVM and your system gem is upgraded for using latest things.
And your old application is still running on older version of rails.
This is just a workaround of using
Gem > 1.3.7
in Rails 2.3 Applications.
I have tested this solution with Rails 2.3.5 and different version of gems.
After upgrading gems to 1.6.2 i have got an error
uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
To fix this error need to update boot.rb file. Place this at the top of
After adding this you should be getting this error
`requirement': undefined local variable or method `version_requirements'
To fix this error you need update your
Add this code above your
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.3.7')
r = super
(r == Gem::Requirement.default) ? nil : r
Now your application should start running properly. Have fun ;)
Now you can downgrade or upgrade your system gem version. Your application will still run.
Above workaround works for me very well. Any other ideas?