摘要: 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 阅读全文
posted @ 2013-06-27 01:26 jzlikewei 阅读(231) 评论(0) 推荐(0) 编辑