When I use the scaffold generator, I only have the option of tying one model to one controller. If I have multiple models, how do I get all the models to have scaffolding generated for the one controller?
Would the following work:
script/generate scaffold Model1 Controller script/generate scaffold Model2 Controller script/generate scaffold Model3 Controller
or would the following be better: script/generate model Model1 script/generate model Model2 script/generate model Model3 script/generate scaffold Model1 Controller # which model to use?
and what happens if I create more models that I need to have scaffolding built for my current controller? How would I integrate this new model into the controller with scaffolding? Would this be one of those instances where I need to do it by hand? Or am I missing something?