How To Remove Unnecessary Controllers?


#1

Hi All,

I’ve got some controllers in my project which I no longer need. –
They were generated by scaffolding.

Is there an easy way to remove them? – I.E. via the command-line.

If not, is there a way to do it manually?

Thanks!

: )

Jason


#2

Jason T. wrote:

Hi All,

I’ve got some controllers in my project which I no longer need. –
They were generated by scaffolding.

Is there an easy way to remove them? – I.E. via the command-line.

Check out the “script/destroy” command


Josh S.
http://blog.hasmanythrough.com


#3

You can delete them like you would any file. There is nothing magical
about a controller that never gets called. My apps have models that
don’t have controllers and controllers that don’t have a model.

Jason T. wrote:

Hi All,

I’ve got some controllers in my project which I no longer need. –
They were generated by scaffolding.

Is there an easy way to remove them? – I.E. via the command-line.

If not, is there a way to do it manually?

Thanks!

: )

Jason