Testing for Form Submission?


I’m trying to create a file upload script using RoR but I am getting
“You have a nil object when you didn’t expect it!” and I think this is
caused by the fact that the no form has been submitted. Is that

Here’s the form:

<% form_for :dump, :url => { :controller => “mycontroller”, :action=>
“csv_reader” }, :html => { :multipart => true } do |f| -%>

Select a CSV File: <%= file_field_tag 'file' %>
<%= submit_tag "Submit" %>
<% end %>


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs