Sometimes if we generated controller, model..., and then find the name we have inputed is wrong, so how to delete all the file associated with them? You can try cmd:
Example:(for Controller) rails destroy controller your-controller-name
and the others are also like this.
Reference:http://www.rubycc.com/column/rails3.2.3/rails.htm#删除自动创建的文件(rails destroy)
Thanks,
Blues
时间: 2024-12-30 00:03:23