… check that the asset does exist.
I had the following code in my application layout template:
1 2 3 4 5 6 7 8 9 | |
It works great to load a custom stylesheet depending on the current subdomain, however I noticed that for some subdomains Rails was not adding the asset_id:
1 2 | |
It is because sample.css must exist. stylesheet_link_tag does not check for the existence of the asset, and if it doesn’t exists it doesn’t add the asset timestamp.
Hope it saves you some time.