[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

using common layout in Rails

Michael P. Soulier

9/25/2006 1:00:00 AM

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
--
Michael P. Soulier <msoulier@digitaltorque.ca>
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein
3 Answers

Timothy Goddard

9/25/2006 9:18:00 AM

0

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.

Michael P. Soulier wrote:
> 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
> --
> Michael P. Soulier <msoulier@digitaltorque.ca>
> "Any intelligent fool can make things bigger and more complex... It
> takes a touch of genius - and a lot of courage to move in the opposite
> direction." --Albert Einstein
>
> --dlIpO4z9UYGQMOAL
> Content-Type: application/pgp-signature
> X-Google-AttachSize: 190

Michael P. Soulier

9/25/2006 1:15:00 PM

0

On 25/09/06 Timothy Goddard 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
--
Michael P. Soulier <msoulier@digitaltorque.ca>
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein

Timothy Goddard

9/26/2006 1:21:00 AM

0

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.

Michael P. Soulier wrote:
> On 25/09/06 Timothy Goddard 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
> --
> Michael P. Soulier <msoulier@digitaltorque.ca>
> "Any intelligent fool can make things bigger and more complex... It
> takes a touch of genius - and a lot of courage to move in the opposite
> direction." --Albert Einstein
>
> --dDnEQgWzhgf+8aPe
> Content-Type: application/pgp-signature
> X-Google-AttachSize: 190