Ungenerate / remove scaffold command?

I have seen this somewhere and can’t find it now. Is there an ungenerate
or remove command for the scaffold generator. It would be easier than
removing all the files by hand.

I have tried ./script/ungenerate but no luck.

Thanks

James W. wrote:

I have seen this somewhere and can’t find it now. Is there an ungenerate
or remove command for the scaffold generator. It would be easier than
removing all the files by hand.

Furthermore, I need help renaming a controller and associated
scaffolding, model, etc…

  • I guess this is why you should plan suff before hand :wink:
    My problem is that I was just dabbling with rails and within a month I
    had a new intranet system!

script/destroy scaffold …

In the past when I’ve had to rename controller/model/etc., I’ve just
moved files around, renamed classes by hand, etc. I figure doing that
is fair punishment for not planning properly beforehand, and it gives
me an incentive to do things better next time…

No idea if there’s a simpler way to do it or not; kind of doubt it,
since you could have made all sorts of changes to the insides of a
controller, and how would a script track all the dependencies that
you’ve introduced?

Regards

Dave M.