in my view i have the following:
<% @files.each do |f| -%>
<% str = f.split("#{RAILS_ROOT}/public/downloads/") %>
<% =str% ><br>
<% end -%>
each file name that is output is preceeded by "/public/downloads/". i have tried numerous functions but can't seem to find a function that works to get rid of it.
Thanks.