Ruby on Rails Tuesday, February 1, 2011

So, I commented out the index method in my controller, just leaving the view as before.

Now I get the error:

Unknown action

No action responded to index


so my question now is, why doesn't the method uploadFile get called in the controller from the view with this code:

<% form_tag ({:action => 'uploadFile'}, :multipart => true) do %>
<p><label for="upload_file">Select File</label> :
<%= file_field 'upload', 'datafile' %></p>
<%= submit_tag "Upload" %>
<% end %>


Still a mystery to me...

--rixter

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment