%= form_for(:importer, :url => import_feeds_path, :multipart => true, :remote => true) do |f| %> <%= file_field_tag :import_file %> <%= f.label :regex, "Insert a regular expression:" %> <%= f.text_field :regex %> <%= f.submit, "" %> <% end %>