Project

General

Profile

Add download link to a plugin to download a file

Added by Lakhan Pasari over 10 years ago

Hi all,

I'm trying to build a plugin and have to give a download link to download a file.
I wanted to keep that file in assets folder of my plugin and not in plugin folder of redmine.

<%= link_to "Download ", "/data/sample.csv" %>

above is working fine when I put my file in public/data folder of redmine.

What should I do, to implement it in above manner?

Please help.