gem install rails --include-dependencies
cd work rails demo cd demo ruby script/server
ruby script/generate controller Test
class TestController < applcationController def hello end end
<html> <head> <title>hello</title> </head> <body> <h1>hello,world!</h1> </body> </html>
http://localhost:3000/test/hello
create database test; create table custs ( id int unsigned not null auto_increment primary key , name char(255) not null , tel1 char(20) );
ruby script/generate scaffold cust Admin
http://localhost:3000/admin