How can I serve static content from outside of the project - rails -


How can I serve images outside Rail Project without using a symlink? Although I may have some way magic but I can find what I am looking for ...

Let's get the images on ~ / images and apply < Code is on ~ ~ / app

I think ~ / images are going to screw you. Images become public / picture folders. However, if you were doing ~ / static_images, you can:

  = image_tag ("/ static_images / my_cool_graph.png")  

Alternatively, you can host ~ / images in a vhost ... if you were then you could:

  = image_tag ("http: //static.joe .com / images / my_cool_graph.png ")  

Comments