Displaying 1 result from an estimated 1 matches for "resource_".
Did you mean:
resource
2011 Jul 24
4
Downloading files not stored in database?
...Browse files for download</h1>
<% form_for(:download, :url=>{ :controller=>"download",
:action=>"download"}, :html => {:multipart => true}) do |f| %>
<table>
<tr>
<th>Files</th>
</tr>
<% @files =
Dir.glob("/home/resource_portal/website/public/data/upload/*") %>
<% @files.each do |file| %>
<tr>
<td><%= link_to file, :controller => "download", :action => :download
%></td>
</tr>
<% end %>
</table>
<% end %>
I dont think I need the form_for l...