Precompiling uploaded assets
问题 I have a rails 3.1 application where users upload pictures. I am storing them in /assets/images since that is the path image_tag looks for instead of public/images. Everything works fine in development but I deployed to Heroku and it gives me this error: ActionView::Template::Error (image_name.jpeg isn't precompiled) What is the right way to handle such a situation? Is there a way to compile images after uploading or should I store them somewhere else? 回答1: You must not use the filesystem on