terminal 新建文件 Posted on 2016-12-05 13:20 1.新建页面 touch 2.新建文件夹 mkdir eg:mkdir app/views/common 3.新建model rails g model xxx xx:xx 删除model rails d model xxx 4.新建controllerrails g controller xxx