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
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…
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs