I have a rails app where I am listing all css and js in a browser that are in the project folder. I have this code to list the files:
<% @files = Dir['**/*.{js,css}'] %>
<% @files.sort.each do |d| %>
<li><%= d %></li>
<% end %>
How can I make those path strings links to the files so that they can be opened in the browser and edited? Thank you for your help.