Kievbuy
7/23/2018 - 2:49 PM

Reach Subdomains in development mode. Rails 3

  1. sudo nano /etc/hosts in terminal
  2. add subdomain to localhost - 127.0.0.1 aquarium.localhost
  3. add config.action_dispatch.tld_length = 0 to config/environments/development.rb
  4. restart server
  5. restart browser
  6. voila
# Add to config/environments/development.rb

config.action_dispatch.tld_length = 0