Hi to all, I''m currently working on a project that should share the db but could be accesed throw different domains, ie: www.site1.com, www.site2.com, etc. My question here is how to use different views depending on the site it''s requested, I know about request.host, I''m just wondering about a "clean" way of doing it. Another layer of complex is that I need to send different content based on the user agent of the client, this is for host WML and HTML versions of the site. Thanks, Angel --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Im not an expert on this sort of things, but wouldn''t it be smarter to use a shared database server and then connect to it from both sites, that way rendering/using different applications/views. Thoughts? On Aug 11, 2:51 am, qwerty <cue...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi to all, > > I''m currently working on a project that should share the db but could be > accesed throw different domains, ie:www.site1.com,www.site2.com, etc. My > question here is how to use different views depending on the site it''s > requested, I know about request.host, I''m just wondering about a "clean" way > of doing it. > > Another layer of complex is that I need to send different content based on > the user agent of the client, this is for host WML and HTML versions of the > site. > > Thanks, > Angel--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Yep, I think it''s the best too, but I just wanted to know how is the other option to compare it. Also I still need to solve the issue about many user agents :S Thanks, Angel 2007/8/11, Glimjaur <glimjaur-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > > Im not an expert on this sort of things, but wouldn''t it be smarter to > use a shared database server and then connect to it from both sites, > that way rendering/using different applications/views. Thoughts? > > On Aug 11, 2:51 am, qwerty <cue...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi to all, > > > > I''m currently working on a project that should share the db but could be > > accesed throw different domains, ie:www.site1.com,www.site2.com, etc. My > > question here is how to use different views depending on the site it''s > > requested, I know about request.host, I''m just wondering about a "clean" > way > > of doing it. > > > > Another layer of complex is that I need to send different content based > on > > the user agent of the client, this is for host WML and HTML versions of > the > > site. > > > > Thanks, > > Angel > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---