<% form_for @wysihat_file, :html => { :multipart => true, :target => 'file_upload' } do |f| %>

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

<%= f.submit %>

<% end %>