I have a single controller that's associated with a single model. I
would now like to create a whole bunch more models to use the same
controller, is this a bad idea?
If I use the scaffold generator (which takes the controller and model
as inputs) will this wipe out all the work I have already done for the
first model (in the views and controller)?
What is the best way to go when you have a lot of models and a single
controller?
There's nothing inherently wrong with multiple models in a
controller. Often times, though, you're dealing with a single model
and its associations (which are other models). For instance, finding
a product and its category, brand, sizes, and colors. You only need:
@product = Product.find(params[:id]) to get @product.brand,
@product.category, @product.sizes, etc.
There's a really good screencast on doing CRUD with associations here: