Based on the if the user is logged to site A or site B, with the single
codebase I have to show different views. What I mean is even though the
contents on both sites for a view will be same but the look and feel
will be different. So, I am planning to have a directory structure like
/app/views/reports | | -siteA | | -scr1 -scr2 . . -siteB | | -scr1 -scr2 . .
Reports controller will have all the methods for the scr1 & scr2. But
based on the site info (which I have in session), how can I set the view
root for the controller? I can check in each method and can use
or render :template=>‘siteB/scr1’
But is there a way to do it one time for the whole controller and not do
it with each render?
Thanks for any help.