Forum: Ruby on Rails How To Remove Unnecessary Controllers?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0430e2423183415d7688898faddb470f?d=identicon&s=25 Jason Tuttle (Guest)
on 2006-04-18 00:28
(Received via mailing list)
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
9f0f89bbd9e1ecfbaab6584e429b7a2f?d=identicon&s=25 Josh Susser (jsusser)
on 2006-04-18 00:39
Jason Tuttle 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 Susser
http://blog.hasmanythrough.com
34f5b045aec62235c17458650ea75353?d=identicon&s=25 Steve Koppelman (hatless)
on 2006-04-18 00:58
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 Tuttle 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
This topic is locked and can not be replied to.