Added simple feature to remove screenshots
This commit is contained in:
parent
60a183576c
commit
65f74e0568
3 changed files with 9 additions and 1 deletions
|
|
@ -74,6 +74,13 @@ class PackagesController < ApplicationController
|
|||
redirect_to upload_package_by_name_path
|
||||
end
|
||||
|
||||
def delete_screenshot
|
||||
@screenshot = Screenshot.find_by(id: params[:id])
|
||||
@screenshot.destroy
|
||||
|
||||
redirect_to upload_package_by_name_path
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
#def user_params
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue