Link to home
Start Free TrialLog in
Avatar of binele
bineleFlag for Australia

asked on

Can't activate rails (= 2.3.5, runtime) for [], already activated rails-3.0.0 for [] (Gem::LoadError)

I have an application which was built on a 2.3.5 rails platform.

Runs through normally with 2.3.8 as well.

I have a new Windows server which I've installed ruby 1.9.2p0 and then did a gem install rails.

It installed the rails v3.0. I then went to install rails -v=2.3.5 so that I can run the application.

However, when I ran rake db:migrate, it gave the error saying that 3.0 is already activated therefore it can't run.

I'd like to ensure that my application runs.

Can someone help me on what I need to do. I can't run ruby script/server nor any rake commands...

I need this to run on Windows due to some constraints that I have.

Thanks
Avatar of JESii
JESii
Flag of United States of America image

I'd try  a
   gem uninstall rails
and/or explicitly uninstalling all the piece-parts:
   gem uninstall activerecord
   gem uninstall active support
   ...
and then a gem install rails --version '=2.3.5'
ASKER CERTIFIED SOLUTION
Avatar of narshlob
narshlob

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial