Where do I put static files like images, stylesheets and javascripts?
Static files should go in the public folder. It is best to put images in public/images, stylsheets in public/stylesheets and javascripts in public/javascripts. This will allow you to use the built-in Helpers more effectively. In your rhtml, the url’s would be relative to public. Thus it’s /images/image.png not /public/images/images.png.
Related Questions
- Can I obtain files or transparencies of non-standard images, for example loan paintings, National Gallery paintings in their frames, x-rays, infra-reds, or conservation material?
- Can SIO2PC give my Atari access to plain PC files not installed in disk images?
- What type of files are the images supplied as?