I created another answer because @ Ivan_Santos is too short.
Updating Rails in Ruby 1.9.3
Installing Ruby 2.0 and Rails on top of it
-
Having version 1.9.3 already installed, I used gem install pik
, then pik_install c:\pik
and added c:\pik
to variable PATH
environment to install pik.
-
Then I used pik install ruby 2.0
to install Ruby 2.0.0.
-
Then I went to C:\RailsInstaller\DevKit
(or if you installed DevKit manually, go to the installation folder [which should also be added to% environment variable]) and added PATH
to - C:\Users\[nome_do_meu_usuario]\.pik\rubies\Ruby-200-p195
and I ran config.yml
in cmd.
-
Then I rolled ruby dk.rb install
to mark version 2.0.0 as active. (You can check it using pik use 200
).
-
This has been done with ruby -v
to install Rails 4.1.
I've usually been able to work with applications made for previous versions of Rails, such as versions 3.x and 4.0, but for this I had to run gem install rails
in the application folder before.