Using common layout in Rails

Hello,

I’m looking at building a web management interface that will work via
plug-in
applications to a main framework. I was debating using multiple Rails
applicaitons that will look, from a user perspective, like a single
application.

To do so, I’d need to use some common layout between all of the
applications.
How would I specify this?

Anyone know if something like mongrel can run multiple applications at a
time?

Thanks,
Mike

Mongrel can run multiple servlets but only a single Rails app can run
under a Ruby interpreter at once. The only way I can think of to get
around this would be to either do this by configuring your web server,
setting them out in physical directories, or using Why’s sandbox
library and writing your own startup scripts to encapsulate several
Rails apps in different sandboxes.

On 25/09/06 Timothy G. said:

Mongrel can run multiple servlets but only a single Rails app can run
under a Ruby interpreter at once. The only way I can think of to get
around this would be to either do this by configuring your web server,
setting them out in physical directories, or using Why’s sandbox
library and writing your own startup scripts to encapsulate several
Rails apps in different sandboxes.

Is there a way to specify a common layout for multiple Rails apps?
Surely
you’re not constrained to just the layouts directory in the app itself,
there
must be a way to pick up a common layout outside of that structure.

Mike

Take a look at the API. You can select a base directory for the views
and can probably use a full path. Failing that, a symlink could solve
it.