3

I have rails 4 and that's my default version (and I still wants it to be). but I d'like to add rails 3.2 on my computer. On the following command: gem install rails -v 3.2.16

I have this Warning:

railties's executable "rails" conflicts with rails
Overwrite the executable? [yN] 

I d'like to know if this will cause some bugs to my 4.0.1?

Малъ Скрылевъ
  • 16,187
  • 5
  • 56
  • 69
Papouche Guinslyzinho
  • 5,277
  • 14
  • 58
  • 101

1 Answers1

5

You should use rvm and install rails 3 into a new gemset. Exactly do steps as follows:

  1. Install rvm.

  2. Install or use a ruby:

    rvm install ruby-2.0.0
    
  3. Create a gemset, and then use it:

    rvm gemset create rails_1_app
    rvm gemset use rails_1_app
    
  4. Install bunlder:

    gem install bundler
    
  5. Create Gemfile, and specify rails 4 in it:

    gem 'rails', '~> 4.0'
    
  6. Install requires gems:

    bundle install
    
  7. Repeat steps 3-6 for a new gemset, but specifying rails 3 in it:

    gem 'rails', '~> 3.0'
    
Малъ Скрылевъ
  • 16,187
  • 5
  • 56
  • 69