Forum: Ruby on Rails file upload Routing problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Allen W. (Guest)
on 2008-10-30 23:05
I have the following upload form:

<% form_for @product_datum, :url => { :action => :create },  :html => {
:multipart => true } do |form| %>


<%= form.file_field :uploaded_data%>

<%= form.submit "Upload" %>

In my controller I have a

def create

For some reason when the user clicks submit, it routes as a GET and
sends them to the controller's "index" function. I had this working fine
a few days ago, but I am lost as to figuring out why the routing is now
messed up.

Allen W. (Guest)
on 2008-11-03 21:11
Still having issues. Funny this is if I deploy on a different host
uploading works fine.
This topic is locked and can not be replied to.