Ruby on Rails Development Environment

Source: Internet
Author: User
Tags ruby on rails netbeans
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.

Related Article

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.