File download using Paperclip
If the file uploaded is attached to a model, e.g. as an attribute called avatar
, then you can create a link like:
<%= link_to "Download", model.avatar.url(:original, false) %>
Replace avatar
with the name of your attribute.
Replace whatever by name that are user in your model for paper clip if you have
resource_file_name,resource_file_name,resource_file_name,
then replace whatever by resource