rails2.0配置好database.yml文件后,
直接使用如下命令即可:
ruby script/generate scaffold product title:string description:string image_url:string price:float data_available:string
也可使用:
ruby script/generate scaffold -h
查看帮助即可
查看指令格式
参考:http://hi.baidu.com/1889/blog/category/Ruby%20On%20Rails
http://www.cnblogs.com/dahuzizyd/archive/2007/04/13/Ruby_On_Rails_windows_InstantRails_begin_5.html