<%=form_for @media,:url => spud_admin_media_path(),:html=>{:class=>"form-horizontal", :multipart => true} do |f|%>
Upload Media
<%=f.label :attachment, "Choose File",:class =>"control-label"%>
<%=f.file_field :attachment%>
<%= f.label :is_protected, 'Protected File', :class => 'control-label' %>
<%= f.check_box :is_protected %>
<%=f.submit "Upload", :class=>"btn btn-primary","data-loading-text"=>"Uploading..."%> or <%=link_to "cancel",spud_admin_media_path,:class => "btn"%>
<%end%>