Creating subdomains

One of the main functions of a SaaS-based application is to provide the users with a separate area completely owned by them. This area is completely abstracted from others and is visible only to the owners and users of the organization. In this task, we will create subdomains and associate them with an organization. We will also explore the definition of a concern in detail and how can it be used to create reusable code components. We will use Tim Pope's solution ( of extending a domain name called local virtual host ( in order to make subdomains work on our localhost.

Engage thrusters

Let us create subdomains for our application users:

  1. We will first save the domain as a ...

Get Rails 4 Application Development HOTSHOT now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.