Upgrade rails to GEM uninstall, and install a specified version of rails.

Source: Internet
Author: User

SlaveRailsUpgrade to GEM uninstall and gem cleanup
RecentRailsUpgrade from 1.1.6 to 1.2.1. If rails1.1.6 has been installed, how can this problem be solved?

1. Upgrade to 1.2.1 and retain 1.1.6
If you do not want to delete the previous version, first download the local installation package rails1.2.1
Http://bbs.railschina.com/thread-54-1-1.html
Run the gem install your. Gem command.
After the installation is complete, 1.2.1 and 1.1.6 coexist.

2. Upgrade to 1.2.1 and retain only the latest versions installed on the gem.
1. Use gem uninstall
First Delete the previous version, Gem uninstallRails
Install the new version.
2. Gem cleanup
After the installation is completed in the method 1, 1.2.1 and 1.1.6 coexist. to clear all installed older versions of gem, run
Gem cleanup
You can.

3. Install and uninstall a specified versionRails

Gem installRails-V version number

Gem uninstall-V version

4. Generate with the specified versionRailsProject:

RailsSpace _ version _ space project name

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.