Reputation: 10224
I'm uploading Carrierwave images to the app/assets/images directory. To display them, I do this...
<%= image_tag "/assets/#{File.basename(@user.image_url(:thumb).to_s)}" %>
The resulting HTML is <img src="/assets/thumb_1_1_leonel.jpg">
It works perfectly in development, NOT in production. The image is in fact, uploaded.
The permissions of the images uploaded are -rw-r--r--
.
I already tried setting config.serve_static_assets
to true (http://stackoverflow.com/questions/10612914/carrierwave-doesnt-render-path-exists-but-image-doesnt-show-up), then restarted Unicorn and ngnix, but I saw no change.
Why aren't they displayed?
Upvotes: 0
Views: 1959