I'm just getting started with interface design in rails. One thing I've noticed is that the scaffold process generates a layout for each object it scaffolds. Is there a way to avoid this? Or is there a better way to handle the DRY problem created by having multiple layout files?
What I'd really like to do is have the ApplicationController assume a standard layout (layout "main"), and then have every controller use that layout unless overridden. But the default behavior of render seems to be to check for the existence of a layout before checking to see whether a layout declaration is in force.
I've been looking online, but haven't found a really good discussion of best practices for dealing with sites that will have 2-3 standard layouts that all controllers should use. Can anyone point me in the right direction?