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: shell
Example:(for Controller) rails destroy controller your-controller-name
and the others are also like this. ruby
Reference:http://www.rubycc.com/column/rails3.2.3/rails.htm#刪除自動建立的文件(rails destroy) this
Thanks, code
Blues htm