Rails asset_host, cloudfront and heroku
问题 I'm running a rails 4.0 app on heroku and for the life of me I can't get my asset urls using the host I've set in asset_host. I believe my cloudfront setup is good because I can substitute in my cloudfront url for any of my asset urls and the file is picked up from heroku and cached on cloudfront. So https://xxxxxxxxxxxx.cloudfront.net/assets/application-xxxxxxxx.js is caching https://myapp.com/assets/application-xxxxxxxxx.js correctly. The issue seems to be my assets helper, such as