Rails 3.1: Should files be uploaded to the resource pipeline?

I have a rails 3.1 application that allows users to upload photos. Should these snapshots be stored as assets (in the app / assets) and therefore subject to the overhead of the stars (caching, fingerprints, etc.)? Or should I store them publicly / with images and store them outside the asset pipeline?

+7
source share
2 answers

IMHO object / image for structural / design images (background, icons, banners, etc.). Dynamically added images / assets must go to a shared directory.

+6
source

I had this problem and it was a permissions problem. If you are working under apache with the www-data user, follow these steps:

sudo chgrp -R www-data public sudo chmod g+rws public 
0
source

All Articles