$ bundle exec rails assets:precompile RAILS_RELATIVE_URL_ROOT="$SUB_URI" --trace RAILS_ENV=production
I don't think so, I think right method in SCSS is image-url
I have never used path prefix with rails. I have search how it should work and the right way is using RAILS_RELATIVE_URL_ROOT. However I don't know if it makes a difference using RAILS_RELATIVE_URL_ROOT at beginning or at end, I guess it should be the same, I have tested and both worked:
$ bundle exec rails assets:precompile RAILS_RELATIVE_URL_ROOT=/test
yarn install v1.22.10
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.05s.
I, [2021-04-15T16:13:13.432813 #37031] INFO -- : Writing /home/sergio/web/test52/public/assets/application-7e07b7fb4f6b6d58fc6d51c49c8467fa96313569b03c15ad88af3a03a0685cc0.css
I, [2021-04-15T16:13:13.433025 #37031] INFO -- : Writing /home/sergio/web/test52/public/assets/application-7e07b7fb4f6b6d58fc6d51c49c8467fa96313569b03c15ad88af3a03a0685cc0.css.gz
$ grep url.*close public/assets/application-*.css
background-image: url(/test/assets/active_scaffold/close-37f05b17a34211c668917ca9b4c6990995e3339f84b99942432fc4139038c06e.png);
background-image: url(/test/assets/active_scaffold/close_touch-f9ba6b60291341555ef15114f23d5dd8ccb40a6ccecbdffa6b5318976c42ff31.png);
What rails version are you using? I have tested with both rails 5.2 and 6.0, it worked in both
Regards
El jueves, 15 de abril de 2021 4:29:54 (CEST) Dennis Bulgatz escribió:
> Maybe a long shot, but in
> vendor/bundle/ruby/2.7.0/gems/active_scaffold-3.6.0.rc2/app/assets/styleshee
> ts/active_scaffold_images.scss should we replace* image-url with image_url
> *to correspond to the rails helper name?