Development machine: Win7 flagship-64-bit
1, install ruby, download Rubyinstaller-2.0.0-p451.exe
: http://rubyinstaller.org/downloads/
1.1 Select the installation directory: (for example: D:\Ruby200)
1.2 During installation: All options need to be checked (install plugin, execute RB extension file)
Ruby-v Display version number indicates normal
Gem-v
2, install Devkit, download Devkit-mingw64-32-4.7.2-20130224-1151-sfx.exe
2.1 Extract to a directory (for example: D:\ DevKit ) 2.2 Run cmd execute ruby dk.rb init and Ruby dk.rb install command in the Ruby-kit directory 3 Replace the Rubygem library address (very important because there is a line problem in the extranet, not only slow updates, but also cause the update to fail) 3.1 Gem sources--remove https://rubygems.org/ 3.2 Gem Sources-a http://ruby.taobao.org/
4, install Rails
Note: Download the latest version to run the gem install rails directly (the latest version is 4.1.4), each version of the query version can go to http://rubygems.org/to search.
Release Rollup:
C:\users\administrator>ruby-v Ruby 2.0.0p451 (2014-02-24) [I386-mingw32]
C:\users\administrator>gem-v 2.0.14
C:\users\administrator>rails-v Rails 3.2.19
5 test environment Rails Create a new directory 5.1. Create a new working directory (E:\rubyWorkspace) and enter the working directory in cmd 5.2. Create a new project run rails new TestWeb
5.3.2 Executing ruby Rails server Test: Access to http://localhost:3000 after successful startup see the Welcome screen, that means it's successful.