Report this

What is the reason for this report?

Rails 4 images not loading

Posted on February 22, 2014

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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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?

I went into my production.rb file and changed two lines of code and set them to true. It works now without any errors. <br>config.serve_static_assets = true <br>config.assets.compile = true

This comment has been deleted

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.