title: Rails controllers for subdomains
body: <p>I want to have multiple subdomains (for employers of two different roles in my company) and some resources are shared between them. But the actions and views of each subdomain are different.</p>
  
  <p>What would be the best practice for organizing the controller and the views (I don't think that putting a lot of ifs on the views is a good thing). Should I create different controllers for each subdomain (I think this wouldn't be dry)? Should I create a base controller for the resources and inherit from them on each subdomain? What would you guys suggest?</p>