Rails 4 images not loading

Posted February 22, 2014 12.2k views
Not really sure why images are not loading on my site. They load perfectly fine on my local server but ones i push it up to the server the images just wont show.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
4 answers
I went into my production.rb file and changed two lines of code and set them to true. It works now without any errors.
config.serve_static_assets = true
config.assets.compile = true
Do you see any errors? I've never used rails but I've seen people precompiling their assets using rake, have you tried doing that?

Same problem happened to me, i solved it changing the image tags:

<%= image_tag "assets/image.png" %>

to :

<%= image_tag "image.png" %>

More info: