How to delete a controller in instant rails

hi folk i've just mistakingly created a crontoller in instant rails
does anyone know how the delete commands/

If you created a controller using the generator like this:

ruby script/generate controller some_name

You can undo it like this:

ruby script/destroy controller some_name

paulkamara@gmail.com wrote:

hi folk i've just mistakingly created a crontoller in instant rails
does anyone know how the delete commands/

The first thing you should do is look at the entire directory structure
that was created for you. If you intend to work seriously with rails,
you will have to know where everything is anyways and it's good to start
right now.. Actually. most newbie rails books urge you to do this
towards the beginning of the book

After some research you will find that to delete a controller, you just
need to remove

/app/controllers/<controller_name>
/app/views/<controller_name>
/app/views/layouts/<controller_name>
/test/functional/<controller_name>
/test/fixtures/<controller_name>

Having an extra controller around will not hurt anything anyways..

hth

ilan