About Cacher
Web App
Download
Sign In
Sign Up
menu
Cacher is the code snippet organizer for pro developers
We empower you and your team to get more done, faster
Learn More
Kievbuy
7/23/2018 - 2:49 PM
share
Share
add_circle_outline
Save
Reach Subdomains in development mode. Rails 3
sudo nano /etc/hosts in terminal
add subdomain to localhost - 127.0.0.1 aquarium.localhost
add config.action_dispatch.tld_length = 0 to config/environments/development.rb
restart server
restart browser
voila
test.rb
content_copy
file_download
# Add to config/environments/development.rb config.action_dispatch.tld_length = 0
clear