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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to