Is their anyway to 'undo' the effects of a scaffold command in rails?
+26
A:
You usually do scaffolding using
./script/generate scaffold SomeName
similarly
you can destroy/undo it using ( it probably will delete all the files created by "generate")
./script/destroy scaffold SomeName
HTH
Rishav Rastogi
2009-06-08 05:05:27
Awesome! Thanks.
Daniel
2009-06-08 05:20:47
A:
If you just want to see the files a generator will create you can pass the generator --pretend or -p option.
Sudhanshu Arya
2010-09-28 22:17:02
+3
A:
Rishav Rastogi is right, and with the new rails its:
rails generate scaffold STUFF
rails destroy scaffold STUFF
Misha Rabinovich
2010-10-05 01:54:56