change ui for delete backend
This commit is contained in:
@@ -61,10 +61,12 @@ class Settings::ZonesController < ApplicationController
|
||||
@settings_zone.rooms.destroy
|
||||
@settings_zone.tables.destroy
|
||||
@settings_zone.destroy
|
||||
respond_to do |format|
|
||||
format.html { redirect_to settings_zones_path, notice: 'Zone was successfully destroyed.' }
|
||||
format.json { head :no_content }
|
||||
end
|
||||
flash[:notice] = 'Zone was successfully destroyed.'
|
||||
render :json => {:status=> "Success", :url => settings_zones_path }.to_json
|
||||
# respond_to do |format|
|
||||
# format.html { redirect_to settings_zones_path, notice: 'Zone was successfully destroyed.' }
|
||||
# format.json { head :no_content }
|
||||
# end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user