<%= link_to '« Cancel and go back', resources_path %>
Select a file: <%= f.file_field :uploaded_data %>
<%= f.label :name %>: <%= f.text_field :name %>
<%= f.label :category_id %>: <%= f.collection_select :category_id, Category.find(:all), :id, :name, {:prompt => true} %>
<%= submit_tag 'Upload file' %>