Saturday, August 14, 2010

[Rails] Re: Multisite in Rails 3

Depends what you mean by functionality. If all the sites use the same
database, you could for example set up Apache to direct all requests
to the default server and use request.env['HTTP_HOST'] to set up a
session variable the layout can use to assign the correct style sheet
or what menus are available or whatever.

On Aug 14, 3:44 am, ratnik <felix.rix...@gmail.com> wrote:
> I need to develop Rails 3 application with a single codebase
> (controlers, models, helpers, etc), but with different views support.
> For example if I openwww.site1.commy Rails 3 app loads views
> and layouts for site1, if I openwww.site2.comit loads views and
> layouts
> for site2. So both sites have the same functionality, but looks
> differently.
>
> What is the best way to implement this functionality in Rails 3.
>
> Thank you in advance.

--
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@googlegroups.com.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate