Forum: Ruby on Rails file upload Routing problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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
..
end

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.

Thanks
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.