Pictures out from images folder

Hi!!!
I wanna to show in my web page a picture, but this picture I can´t move
it from the folder where it is. I know that in Rails you have to have
the picture in the images folder, but I wanna to know if it is possible
to show a picture from another folder different.

Thanks!!

Hi!!!
I wanna to show in my web page a picture, but this picture I can´t move
it from the folder where it is. I know that in Rails you have to have
the picture in the images folder, but I wanna to know if it is possible
to show a picture from another folder different.

public/images is the usual place to put images but anywhere within the
public folder will do (since that is what your document root is). With
extra configuration you can probably get your webserver to serve
images from other locations too.

Fred

Frederick Cheung wrote:

Sure it is possible and you have many options how to reach it. The
easiest way is probably to make a filesystem link from Rails image
folder to your unmovable folder. Like (provided you are in your rails
public/images directory)

ln -s /your/unmovable

and you can reach your images like this

image_tag 'unmovable/something.png'

cheers

Jakub