0
我想用主动管理上传CSV文件,我想知道这是可能的,创建一个from_tag的f.input里面:路由错误,导入CSV
<%= f.inputs do%>
<%= f.input :contact, :as => :select, :collection => Contact.all %>
<%= f.input :route_import, :as => :select, :collection => RouteImporter.all %>
<% form_tag({:action => :upload}, :multipart => true) do %>
<%= file_field_tag 'upload_data'%>
<% end %>
<%end%>
当我运行但我得到这个错误:
Routing Error No route matches {:action=>"upload", :controller=>"admin/routes"}
我想调用的方法上传这是RouteQuickcom类,我在做什么错谢谢!