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
on 2006-02-08 08:44
on 2006-02-08 08:59
James Whittaker 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 ;) My problem is that I was just dabbling with rails and within a month I had a new intranet system!
on 2006-02-08 09:02
script/destroy scaffold ...
on 2006-02-08 09:17
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.