Dan P. wrote:
Let’s say I have four different rails apps which use different
I’d like each app to have a consistent look and feel starting with using
the same header, footer and stylesheets on the pages that are displayed
in the browser. Is there someway to do that?
Can the header and footer code sit in a separate partials directory
which they can all share?
I could imagine you create a plugin, that contains the method and data
that you place in these headers and footers.
Then your layouts could say
<%= mydomain_header %>
<%= mydomain_footer %>
and these methods are taken from the plugin code.
The plugin code could be checked out as external projects from
subversion repository for example, to synchronize them as you like.
Haven’t thought through how you would provide for dynamic content; I
don’t know if the headers and footers have dynamic content (Logged in
Your stylesheets could be accessed through
http://mydomain.com/styles/style.css. Don’t know if you find it
difficult to set up a server for this or you already have one.