For pull
This commit is contained in:
11
app/controllers/settings/display_images_controller.rb
Normal file
11
app/controllers/settings/display_images_controller.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class Settings::DisplayImagesController < ApplicationController
|
||||
def destroy
|
||||
#byebug
|
||||
@item_photo = DisplayImage.find(params[:shop_id])
|
||||
item = @item_photo.id
|
||||
@item_photo.destroy
|
||||
respond_to do |format|
|
||||
format.html {redirect_to settings_shops_url+'/1/edit', notice: 'Image was successfully destroyed.'}
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user