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.