Ruby on Rails 3 Carrierwave is not show or display on staging or production

English: Ruby on Rails logo
English: Ruby on Rails logo (Photo credit: Wikipedia)
Hi all,

I had a problem when using Carrierwave on staging or production. The problem is about the image is not display on staging or production. Please follow me to fix that.

1. Go to config/environments/production.rb and config/environments/staging.rb
2. Change the config.serve_static_assets = false
    into config.serve_static_assets = true
3. restart server production

Note: When always not show image.
1. Go to the app/uploaders/avatar_uploader.rb
2. Add line
    permission 0777
3. resrart the server

I this article the help you. :)
Enhanced by Zemanta

Comments

Popular posts from this blog

Riset Kebutuhan & Jasa Pembuatan Website UMKM (Riset Lapangan Jakarta Barat)

5 Nilai Inti (GCG) Wajib Sebelum Merancang Produk Digital

Kesalahan Pindah Blogspot ke Domain Pribadi Berujung Domain Blogspot Lenyap