0

I have a Rails 3 project, and I have a computer with Rails 2 installed. Is there any way for me to start the server on that computer? I cannot update the computer to Rails 3 for various reasons.

Topsic
  • 109
  • 1
  • 9

1 Answers1

2

You don't need to 'update the computer to rails 3', you can install multiple versions of rails concurrently and define which versions to use in each project.

  • In Rails 2 projects the rails version is defined by RAILS_GEM_VERSION in environment.rb
  • In Rails 3 projects the rails version is defined by gem 'rails', '3.x.x' in the gemfile

If you also need multiple ruby versions:

  • If on linux have a look at RVM
  • if on windows have a look at pik
Matt
  • 13,948
  • 6
  • 44
  • 68
  • I see, but I dont admin rights on this computer so I cant really change anything on the computer, only the project itself – Topsic Jun 04 '13 at 13:42
  • You'll just run into error after error if you run the rails 3 project against rails 2 (by changing the rails version number in the gemfile), but see [this question](http://stackoverflow.com/questions/11886921/downgrading-a-rails-3-app-to-rails-2) for some downgrade guidance. – Matt Jun 04 '13 at 13:47