I have app with few folders, but only one controller supported it
folder_one
& folder_two
, these folders should be rendered based on domain
if domain one
should be rendered folder_one
How to do it?
main question is how to render folder based on request.
upd:
my app structure
accounts
first_domain
index.html.erb
second_domain
index.html.erb
if request came from first_domain.com
should be rendered 'accounts/index/first_domain'
if request came from 'second_domain.com'
=> 'accounts/index/second_domain'