Last Updated: February 25, 2016
·
1.566K
· fcknganimal

Asset subdomains in Rails

You can make many subdomains simply by adding one string in your production.rb file:

config.action_controller.asset_host = "http://assets%d.example.com"