I am using CarrierWave gem in my application to upload video files. Below is my custom Uploader.
As can be seen above the store_dir points to a path
The directory structure for I have is as follows:
Now I am generating a thumb for the uploaded video at
I need to render this thumb image in my view.For this I used
but it is not getting rendered. In Firebug I can see that the image gets loaded, when I specify the file system's absolute path to the file, while on UI only the thumb image name (alt attribute value) is displayed.
How can I render the images available in a custom directory, like uploads, as shown in the scenario above?
The Art Of Life Is To Know When To Be Useless And When To Be Useful - CHUANG TZU
Too many men are afraid of being fools - Henry Ford. Foolish tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book