Closed bschaeffer closed 8 years ago
It is the expected behavior. The -path
method build only the URL, in the case 'https://mycdn.com/assets/awesome/image-{fingerprint}.png'
. The -url
method build the url()
call and the URL of the asset so in this case url('https://mycdn.com/assets/awesome/image-{fingerprint}.png')
. It is documented here.
When
config.asset.host
is set, it is included in the output*-path
helpers. I'm not sure if this is expected behavior, but it seems like it shouldn't be because we have both*-path
and*-url
helpers. Anyway, take the following.application.css.scss
development.rb:
...and then
rake assets:precompile
produces:production.rb
...and then
RAILS_ENV=production rake assets:precompile
produces:Is this the desired output? Not sure how to get the compiler to respect the fact that I want the path only.