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 Tessarolo 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 @: tessarolo.gianluca-6ZZdBs7hMehZp5Udy/Obhg@public.gmane.org ---------------------------------------------------------------------- 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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hello Gianluca I would think that each sub domain would have it''s own directory? Does this thread help? http://groups.google.ca/group/rubyonrails-talk/browse_frm/thread/d7e87af0e6c1b9b5/4dc0f841ada9058b?lnk=gst&q=configure+public+directory#4dc0f841ada9058b Regards, Dave On Nov 13, 6:58 am, Gianluca Tessarolo <tessarolo.gianl...-6ZZdBs7hMehZp5Udy/Obhg@public.gmane.org> wrote:> 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 Tessarolo > 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 @: tessarolo.gianl...-6ZZdBs7hMehZp5Udy/Obhg@public.gmane.org > ---------------------------------------------------------------------- > 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 ?> Hello Gianluca > > I would think that each sub domain would have it''s own directory? > Does this thread help? > http://groups.google.ca/group/rubyonrails-talk/browse_frm/thread/d7e87af0e6c1b9b5/4dc0f841ada9058b?lnk=gst&q=configure+public+directory#4dc0f841ada9058b > > Regards, > Dave > > On Nov 13, 6:58 am, Gianluca Tessarolo > <tessarolo.gianl...-6ZZdBs7hMehZp5Udy/Obhg@public.gmane.org> wrote: > >> 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 Tessarolo >> 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 @: tessarolo.gianl...-6ZZdBs7hMehZp5Udy/Obhg@public.gmane.org >> ---------------------------------------------------------------------- >> 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. >> > > > > > > >-- Gianluca Tessarolo 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 @: tessarolo.gianluca-6ZZdBs7hMehZp5Udy/Obhg@public.gmane.org ---------------------------------------------------------------------- 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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Tessarolo <tessarolo.gianl...-6ZZdBs7hMehZp5Udy/Obhg@public.gmane.org> wrote:> 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.comand 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 ? > > > > > Hello Gianluca > > > I would think that each sub domain would have it''s own directory? > > Does this thread help? > >http://groups.google.ca/group/rubyonrails-talk/browse_frm/thread/d7e8... > > > Regards, > > Dave > > > On Nov 13, 6:58 am, Gianluca Tessarolo > > <tessarolo.gianl...-6ZZdBs7hMehZp5Udy/Obhg@public.gmane.org> wrote: > > >> 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 Tessarolo > >> 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 @: tessarolo.gianl...-6ZZdBs7hMehZp5Udy/Obhg@public.gmane.org > >> ---------------------------------------------------------------------- > >> 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. > > -- > Gianluca Tessarolo > 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 @: tessarolo.gianl...-6ZZdBs7hMehZp5Udy/Obhg@public.gmane.org > ---------------------------------------------------------------------- > 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Nov 13, 2007, at 6:58 AM, Gianluca Tessarolo 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) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---