摘要:
rails上传文件 无需gem首先是modelclass DataFile "File has been uploaded successfully" #postFile.delete end def upload end然后是view,对应的是upload的:File Upload true,:remote => true) do %>Select File : "filename"%> 'btn btn-primary', :id => 'upload' %>这样就是了。如果需要异步aja 阅读全文