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

Komentar

Postingan populer dari blog ini

EPrT English Proficiency Test Soal - soal

cara memunculkan dan menyembunyikan icon date, time, clock, volume, network, power battery, action center pada taskbar pada Windows 7