Ruby2.0 and rails4.0 (Windows) installation

Recommended for you: Get network issues from WhatsUp Gold. Not end users.
1, Install Ruby
To download the install package (2 edition)
Finally, to check the Ruby on the path path
And then enter the CMD, enter the ruby -v version, version is installed successfully

2, Install devkit
To download the DEVELOPMENT KIT, for example
For use with Ruby 2.0 (32bits version only):
DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe
After downloading unzip it in a directory such as D:\devkit
And then enter the CMD switch to the devkit directory
Run ruby dk.rb, and then follow the prompts are running the ruby dk.rb init and ruby dk.rb install to enhance the ruby

3, Install rails (the default install the latest version, at present is 4.)
gem install rails

To view the Rails version: rails -v     View all has the installed version: gem list

Ps: gem install rails-- said many online with include-dependencies
But the installation failed, reportedly Add URL will be successful
gem install rails --include-dependencies --source

4, Rails4.0 development demo
Construction of demo project
rails new path/to/your/new/application
The startup project
cd path/to/your/new/application
rails server
Visit: http://localhost:3000/


Related links:
http://developer.51cto.com/art/200906/129669.htm


A little bit of recording PS: beginners, also hope rails master can help one or two.

1, Perhaps some friends like me not to see Hello world, see the log, the following error

Status: 500 Internal Server Error
no such file to load -- sqlite3

This is due to not install SQLite3 database, http://files.cnblogs.com/geek007/sqlite3.rar download here,

Then unzip the ruby bin directory: D:\ruby\bin, the command line: gem install "D:\ruby\bin\sqlite3-ruby-1.2.3-mswin32.gem"

2, Recommend a CMD tool PowerCmd, to replace the system of CMD, you will feel very convenient.
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Beacher at January 16, 2014 - 5:46 AM