I have one application and four controllers. 3 controllers need
identical code in their layouts. The fourth is a superset of the
other 3. To be more specific, there is 10 lines of code buried
between the & tags that only is required for the
What is the most efficient way to get this done? I know that if they
all required the same code, that I could just put that code in a
file called application.rhtml at the root layout level, but that is
not quite the case here.
Thanks in advance for any suggestions.
PS. Would anyone also like to recommend to me an excellent book on
object oriented programming? If it could be based on ruby that would
be ideal but not necessary.