I am working in a RoR application which allows certain users
to upload files. Currently I store these files
in a directory called “files”. This directory is located in
the RoR application directory:
So users don’t have access to them.
Now I want users to be able to download some of these files
(they will search based on some parameters). With this
setup I cannot link from my views to that files since they
are out of the public directory.
I could move the files directory to the public directory but
then everybody will have access to those files.
Any idea about how to implement this?
Thank you in advance,