Hi- I have an shopping cart rails app. I would like to be able to host multiple domain names within the same shopping cart application. I would like to be able to detect the domain name, and then set a parameter that tells what logo to display for that domain name. Does anyone know how this can be done? Thanks, Clark
On Mon, Oct 5, 2009 at 12:14 PM, Clark <clarkslater-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I would like to be able to detect the domain name, and then set a > parameter that tells what logo to display for that domain name.Have you looked at the doc for the request object? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan
Clark wrote:> Hi- > > I have an shopping cart rails app. > > I would like to be able to host multiple domain names within the same > shopping cart application. > > I would like to be able to detect the domain name, and then set a > parameter that tells what logo to display for that domain name. > > Does anyone know how this can be done? > > Thanks, > ClarkHello, As per your post i think you are looking for multi sites concept. In multi sites it uses same code base and different views as per domain. i think this plugin help you. http://github.com/dasil003/rails-multisite Thanks, Priyanka Pathak -- Posted via http://www.ruby-forum.com/.