Ruby on Rails Installation Notes

Source: Internet
Author: User
Tags create database ruby on rails netbeans

For several days, ROR environment finally set up, in order to prevent later forget, less detours, special records

=============================================

installation process

1. Installation rubyinstaller-1.9.2

2, install the implementation gem install Rails

3. Install dev Kit Download and unzip to Ruby's installation directory

4. Install NetBeans 6.9.1

5, open the NetBeans configuration Ruby gem key mysql2 0.2.6 let Ror support MySQL

6, installation Ruby_debug_ide (not yet done, has been the error)

Development process

1, create the project (Blog)

2. Configure Database.yam

3. Perform rake task Db:create (will create database in MySQL according to Database.yam, do not need to create database manually)

4, start the service, open the page to see whether it is normal, especially to see whether the environment variable is correctly displayed

5. Create Controller Home Index

6, open the service http://127.0.0.1:3000/home/index see whether normal

7, change the default home page (1, delete public\index.html 2, change routes root:to => "Home#index")

8. Create scaffolding model (Generate scaffold Post name:string title:string content:text)

9, the implementation of Rake task, the new data model synchronization to the database rake db:migrate

10, on the home page to add to the link to the scaffold (in the Views\home\index.html.erb change to

11, open the home http://127.0.0.1:3000/see a hyperlink to the blog

12, connected to carry out curd test.

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.