This commit is contained in:
Christoph Haas 2015-04-18 21:39:12 +02:00
parent 42447edeaa
commit ec726ed62a
3 changed files with 12 additions and 7 deletions

View file

@ -61,13 +61,13 @@ 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
end