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

17.19 Muhamad Akbar Bin Widayat 0 Comments

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

0 komentar:

terimakasih komentarnya