I'm trying to implement multiple file uploads with the Refile gem.
The user has to be able to upload multiple documents to a tournament model.
In the show template, I try to read out all uploaded documents like this:
<% @tournament.documents.each do |doc| %>
<%= link_to @tournament.document_filename, attachment_url(doc, :file) %>
<% end %>
But this gives me a really long link in the view, something like this:
/attachments/c569801bbd2a2ca51350ca326ec57e18d0d318e9/store/ad644cadeda8ee5197bc2bb8a66cc966f5b4b74fad7bbccd2ab798a10c98/file
Is there a way to output the filename of the uploaded documents?
Thanks a lot for your help,
Anthony