Make seperate upload page obsolete

This commit is contained in:
Christoph Haas 2015-02-11 20:41:24 +01:00
parent 3122a3d0c2
commit 5c2a4f237e

View file

@ -71,14 +71,14 @@ class PackagesController < ApplicationController
#new_screenshot.image = params[:image]
#render text: "File has been uploaded successfully"
redirect_to upload_package_by_name_path
redirect_to package_path
end
def delete_screenshot
@screenshot = Screenshot.find_by(id: params[:id])
@screenshot.destroy
redirect_to upload_package_by_name_path
redirect_to package_path
end
private