let's say I wand to build a whitelabel product.
I want to display different layouts (Logos, CSS, ...) based on the current URL the website was accessed by.
a123.mywebsite.com should render a different layout than
I couldn't find anything describing something like that anywhere :(
Thanks in advance!
As a really trivial example, you can do what they mentioned on StackOverflow here: https://stackoverflow.com/questions/6748168/changing-rails-3-apps-layout-based-on-the-hostname-domain-for-branding
layout :domain_layout def domain_layout controller.request.host end
Which would look for
You can do other tweaks to that to decide which file to render.