Merge
This commit is contained in:
parent
42447edeaa
commit
ec726ed62a
3 changed files with 12 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue