Make seperate upload page obsolete
This commit is contained in:
parent
3122a3d0c2
commit
5c2a4f237e
1 changed files with 2 additions and 2 deletions
|
|
@ -71,14 +71,14 @@ class PackagesController < ApplicationController
|
||||||
#new_screenshot.image = params[:image]
|
#new_screenshot.image = params[:image]
|
||||||
|
|
||||||
#render text: "File has been uploaded successfully"
|
#render text: "File has been uploaded successfully"
|
||||||
redirect_to upload_package_by_name_path
|
redirect_to package_path
|
||||||
end
|
end
|
||||||
|
|
||||||
def delete_screenshot
|
def delete_screenshot
|
||||||
@screenshot = Screenshot.find_by(id: params[:id])
|
@screenshot = Screenshot.find_by(id: params[:id])
|
||||||
@screenshot.destroy
|
@screenshot.destroy
|
||||||
|
|
||||||
redirect_to upload_package_by_name_path
|
redirect_to package_path
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue