<%= form_tag(upload_school_path(@school.id),method: "post", multipart: true,:id => "school_form") do %> <%#= text_field_tag 'school'%>
<%= image_tag(@school.logo_link, id: "avatar_image", :class=>"school_avatar")%> 上传图片 <%= file_field_tag 'logo',:style => "display:none;", :id => "file", :onchange => "showPreview(this)"%>
学校名称:
学校省份:
<%#= submit_tag('提交',:class=>'mr5') %> <%#= submit_tag('取消') %>
<% end %>