简体   繁体   中英

How to display images from /vendors/assets on Heroku

In /vendor/assets/stylesheets/jquery_ui/images are all images from jQuery-UI library. On localhost works me everything well, but when I deploy app (Rails 3.2) to heroku, so there are not displayed any of images placed in the vendor directory.

I tried placed these images to the /public directory, /app/assets/ directory, also run the command rake assets:precompile , but nothing works me.

jQuery running on Heroku well, but its images still not.

What am I still missing? I have already not idea, what to try yet...

Thank you

You can check the image path which is created after parsing using inspect element. the path is not properly created obviously.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM