<%= link_to (file.filename || file.path).split('/').last, file.url, target: '_blank' %>