Rails 'generators' makes it quite easy to create basic model, controller, helper & test skeleton files
But lately I found that it is equally easy to clear files created by generator by using DESTROY.
Example
ruby script/destroy controller XXXX
Will remove all files dumped by rails for command ruby script/generate controller XXXX
ruby script/destroy scaffold XXXX
Will remove all files dumped by rails for command ruby script/generate scaffold XXXX
No comments:
Post a Comment