You can use the non-stupid-digest-assets gem to force the asset pipeline to keep the original image file.
How to get an unmodified URL for an image?
-
18-06-2023 - |
質問
I have a logo on my website that I want to use on other site as well. (I can't copy it there).
On main site it's specified as
<%= image_tag "logo_new_v1.jpg" %>
After assets:precompile
it's get changed to logo_new_v1-319364c3d16b335b3c99827b797a21bf.jpg
So the only way (which I found) to reference it from another site is using this URL: http://www.domain.com/assets/logo_new_v1-319364c3d16b335b3c99827b797a21bf.jpg
But instead I would prefer to reference it by this one: http://www.domain.com/assets/logo_new_v1.jpg
Is it possible?
解決
他のヒント
OK, here's correct way to do it. http://www.domain.com/assets/logo_new_v1.jpg
所属していません StackOverflow