Domain names within app

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 [email protected] 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 S. ------------------------ [email protected]
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,
Clark

Hello,
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 P.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs