New file

<%= form_for @file, :html => { :multipart => true } do |f| %> <%= f.error_messages %>

<%= f.label :name %>
<%= f.file_field :name %>

<%= f.label :description %>
<%= f.text_field :description %>

<%= f.label :directory_id %>
<%= f.select :directory_id, Directory.all.collect{|c| ["#{c.path} - #{c.name}", c.id]} %>

<%= f.submit 'Create' %>

<% end %>