http://viewvc.rubyforge.mmmultiworks.com/cgi/viewvc.cgi/flex_scaffold/trunk/generators

/flex_scaffold_resource/USAGE?root=flexible-rails&r1=7&r2=8&pathrev=14
./script/generate scaffold_resource post title:string created_on:date body:text published:boolean
看了上面的文章和Peepcode –004–testing.mov 的15:53,了解到这条命令的作用就是产生一个modle
post,一个post_controller.rb,还有相应的模板,模板应该带有的字段

转载请注明:韦旭红的点点滴滴 » script/generate 还有这样的用法