Monday, November 14, 2011

[Rails] upload file routing error

Hi

I want to upload file using rails.

I google search find that :
http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm

but it can't not work!

I also modify "<%= start_form_tag" to "<%= form_tag"
and "<%= end_form_tag %>" to "<% end %>"

It still show error message:

"Routing Error
No route matches [POST] "/upload/uploadFile" "


But on routes.rb it included get "upload/uploadFile" and get
"upload/index"

How to fix the problem ?

rails version: 3.1.1
OS : Windows XP


Thanks

--
Posted via http://www.ruby-forum.com/.

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate