Multiple templates - one app

Hi everyone,
Rails newbie here so forgive the question if the answer is ridiculously
obvious.

I am trying to write an app that meets the following requirements. I’d
like to do it in Rails, but having pored over documentation for that
past couple of days, don’t even know whether it’s feasible or not.
Basically:

  • One codebase
  • multiple domains
  • each domain will have the same base functionality, but the look and
    feel will be determined based on a selection of templates

To summarize, I would like a system whereby people can sign up for a
site, pick their domain name, everyone gets the same functionality, but
they can choose from a selection of provided templates and customize
the look and feel of their site.

if it is possible, can you point me in the right direction?

Thanks … your comments are appreciated.

To summarize, I would like a system whereby people can sign up for a
site, pick their domain name, everyone gets the same functionality, but
they can choose from a selection of provided templates and customize
the look and feel of their site.

Aha, theme support. Have a look at
http://www.mattmccray.com/archives/category/software/rails/theme-support/

Max

You said what I mean in one word … themes! Thanks man! I’ll take a
look.

I’m still not sure whether this allows me set up a different theme per
domain name.

On Aug 17, 2006, at 1:20 AM, Agazoom wrote:

I’m still not sure whether this allows me set up a different theme per
domain name.

This is a question better answered on the rails mailing list.
http://lists.rubyonrails.org/

On 8/17/06, Agazoom [email protected] wrote:

I’m still not sure whether this allows me set up a different theme per
domain name.

Agazoom wrote:

You said what I mean in one word … themes! Thanks man! I’ll take a
look.

Just an idea, possibly plain wrong: maybe be it’s possible to do by
playing with url rewriting/proxying - try to setup all domains to
point to the same rails app, and pass the domain name as a parameter.
Still I’m not sure about this, as rails likes to know what its base
url is, to be able to generate proper links.

J.

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