Is there any way to re-generate views from newly updated model?
A:
The scaffold is not intended to create the interface, only to make a starting point for further development. I'm not sure it's even possible (without a lot of unnecessary work) to redo a scaffold, it's much quicker to manually edit the view and controller anyway.
Stein G. Strindhaug
2008-12-01 18:02:23
+2
A:
Unless you've made a lot of changes to the scaffold, it's probably easier just to overwrite the current scaffold:
./script/generate -f scaffold Model
Benny Wong
2008-12-01 18:31:58
What is -f ? Couldn't find '-f' generator
totocaster
2008-12-02 09:36:30
-f, or --force, will overwrite files that already exists. You can run script/generate scaffold to see all available options.
Mike Breen
2008-12-02 19:00:01