I am working on a project in which users can create PDF files and then download them.
Currently, I am creating these PDFs inside “public/” folder in the project.
But, I want to change the path to a folder outside the project folder, but on the same server.
There is no problem in saving the files in this external folder, but, how do I allow users to download the files in the front-end. Is there a way to make files in external folder downloadable.
Basically I want this external folder to work same as “public” folder.
In Phoenix, there is a way to do this by adding a one line configuration that links external folder to project url. Is there something similar in Rails?
This is my first project in rails. So kind of lost.