disable uploads for debugging

This commit is contained in:
albert
2013-02-17 12:56:42 -05:00
parent 55e526cdc8
commit af0d02347f
2 changed files with 7 additions and 0 deletions

View File

@@ -23,6 +23,9 @@ class UploadsController < ApplicationController
end
def create
render :nothing => true
return
@upload = Upload.create(params[:upload].merge(:server => Socket.gethostname))
@upload.delay.process!
respond_with(@upload)

View File

@@ -2,6 +2,9 @@
<div id="a-new">
<h1>Upload</h1>
<p>Uploads temporarily disabled</p>
<!--
<div id="upload-guide-notice">
<p>Before uploading, please read the <%= link_to "how to upload guide", wiki_pages_path(:title => "howto:upload") %>.</p>
</div>
@@ -60,6 +63,7 @@
</div>
</div>
<% end %>
-->
</div>
</div>