I need to develop Rails 3 application with a single codebase
(controlers, models, helpers, etc), but with different views support.
For example if I open www.site1.com my Rails 3 app loads views
and layouts for site1, if I open www.site2.com it loads views and
for site2. So both sites have the same functionality, but looks
What is the best way to implement this functionality in Rails 3.
Thank you in advance.