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 -- Posted via http://www.ruby-forum.com/.
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!
script/destroy scaffold ... On 08/02/06, James Whittaker <jmwhittaker@gmail.com> 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. > > I have tried ./script/ungenerate but no luck. > > Thanks > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
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. On 08/02/06, Brendon Gleeson <brendon@gleesonprop.co.za> wrote:> 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! > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >