views:

181

answers:

2

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
+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
What is -f ? Couldn't find '-f' generator
totocaster
-f, or --force, will overwrite files that already exists. You can run script/generate scaffold to see all available options.
Mike Breen