If you want to configure subdomains, using /etc/hosts, this will not work:
127.0.0.1 api.localhost
Instead, you need to use
127.0.0.1 api.localhost.local
As mentioned here, Rails 3 treats api.localhost as the domain.
Developer from somewhere
If you want to configure subdomains, using /etc/hosts, this will not work:
127.0.0.1 api.localhost
Instead, you need to use
127.0.0.1 api.localhost.local
As mentioned here, Rails 3 treats api.localhost as the domain.