1. Install JDK
Jdk-6u7-windows-i586-p.exe
2. Install instantrails
2.1 decompress the package in any directory.
InstantRails-2.0-win.zip
(Instantrails has a lot of built-in software and has been configured, for example, Ruby 1.8.6 rails 2.0.2 MySQL Apache + phpMyAdmin)
2.2 Add the following path to the path system environment variable:
C:/rubyonrails/instantrails/Ruby/bin
C:/rubyonrails/instantrails/MySQL/bin
Replace the red part with the actual instantrails path.
2.3 start the new cmd window and make sure the following commands are executed properly:
Ruby -- version
Rails -- version
2.4 if the database is ready to use UTF-8 encoding, You need to modify/conf_files/My. ini
Append the following three lines at the end of the file:
Default-character-set = utf8
[Client]
Default-character-set = utf8
2.5 run instantrails.exe and press "OK" in the confirmation dialog box.
3 install netbeans
Netbeans-6.1-ml-ruby-windows.exe
4. Installation Complete
Create a project to start a rails Journey:
Jruby is not recommended.
We recommend that you use the mongrel server.
Confirm that the new project is encoded as a UTF-8.