ruby on rails - unable to display images on heroku -
When I run the website locally, it works fine. Nevertheless, after being pushed to Heroku, it is displayed as a broken image
& lt; Img src = "Assets / Pictures Blank_avatar_male.jpg" alt = "blank_male_avatar" & gt;
I tried to change the path to / properties / images / JPG and erased it again and again. There is no luck so far
Please be bare with me, new to using herooku, so I am probably unable to answer your questions Thank you!
My guess is that you have config.serve_static_assets
your Output.rb
is not right in the file.
The simplest solution is to include rails_12factor
gem which will do this for you
Comments
Post a Comment