<% set_title 'Import Locations' %> <%= form_tag upload_locations_path, :method => :post, :multipart => true do %>

To import locations, upload the import file below. Make sure the file follows this <%= link_to 'format', '/sample-locations.xls' %>: it must be tab-delimited and the column names must match exactly. Otherwise, your data won't be processed correctly.

<%= file_field 'upload', 'datafile' %>
<%= submit_tag 'Upload', :class => 'button' %> <% end %>