Hi to all,
I’ve a simple question:
does it possible to change the public folder address based on database
value into application controller ?
This because I must handle a multidomain rails application and I must
separate the public folders for each different domain…
Thanks in advance…
–
Gianluca T.
TreNetMediaMaster S.r.l.
The Internet Technology Company
Telefono +39(049)776196
Fax +39(049)8087806
Visit us @: http://www.trenet.it - http://www.mediamaster.it
e-mail me @: [email protected]
Le informazioni trasmesse sono destinate esclusivamente alla persona o
alla società in indirizzo e sono da intendersi confidenziali e riservate.
Ogni trasmissione, inoltro, diffusione o altro uso di queste
informazioni a persone o società differenti dal destinatario é proibita.
Se ricevete questa comunicazione per errore, contattate il mittente e
cancellate le informazioni da ogni computer.
Hi Dave,
thanks for your reply,
I read the thread but I don’t understand how to solve the problem.
I have only one rails app that serves up multiple domains (eg.
www.domain1.com, www.domain2.com and so on, all point to the same rails
app) and every time I put a request on static resource
(images/stylesheets/etc) the rails app must handle the resource under
different folder (for security reasons, every single domain
administrator can handle its own static resources…).
One possible solution is to use config.controller.asset_host but seems
that it does’nt work for me because I know the called domain name only
into application controller using request.domain…
Can you help me ?
[email protected] wrote:
–
Gianluca T.
TreNetMediaMaster S.r.l.
The Internet Technology Company
Telefono +39(049)776196
Fax +39(049)8087806
Visit us @: http://www.trenet.it - http://www.mediamaster.it
e-mail me @: [email protected]
Le informazioni trasmesse sono destinate esclusivamente alla persona o
alla società in indirizzo e sono da intendersi confidenziali e
riservate.
Ogni trasmissione, inoltro, diffusione o altro uso di queste
informazioni a persone o società differenti dal destinatario é proibita.
Se ricevete questa comunicazione per errore, contattate il mittente e
cancellate le informazioni da ogni computer.
Sorry Gianluca, it’s an area that I don’t know enough about. I’m just
starting to play with setting up multiple domains into a single rails
app, so I need to figure it out.
Please let me know if you’ve had any success. You can email me if you
like at dfdumaresq at gmail dot com.
-Dave
On Nov 13, 9:05 am, Gianluca T.
On Nov 13, 2007, at 6:58 AM, Gianluca T. wrote:
I’ve a simple question:
does it possible to change the public folder address based on database
value into application controller ?
This because I must handle a multidomain rails application and I must
separate the public folders for each different domain…
See this article and the comments below it…
http://www.railsdev.ws/blog/10/using-subdomains-in-rails-apps/
– gw (www.railsdev.ws)