Getting Rid of Accidental Controller

I accidentally created a controller with the wrong name. Obviously I
don’t want to have this useless controller hanging around - is there a
prescribed way to delete the controller or can I just delete the
controller file?

from yesterday

not sure what you’ve done to get what you’ve got, but the destroy script
will certainly help you clean up properly (i.e: it removes the tests and
helpers and stuff)

e.g:

ruby script/destroy controller article

Just delete the file. If you use the

ruby script/destroy controller MyController

command though, it will also get rid of your functional tests. And maybe
a helper too and stuff.

Mark D. wrote:

I accidentally created a controller with the wrong name. Obviously I
don’t want to have this useless controller hanging around - is there a
prescribed way to delete the controller or can I just delete the
controller file?

Thank you.