码迷,mamicode.com
首页 > 其他好文 > 详细

How to rollback the files generated automatic?

时间:2015-01-05 19:01:27      阅读:171      评论:0      收藏:0      [点我收藏+]

标签:

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

How to rollback the files generated automatic?

标签:

原文地址:http://my.oschina.net/u/913344/blog/363976

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!